Command: arc

Syntax

{<entity> = } arc

Description

Create an arc graphic entity, or a series of points forming an arc.

Parameters

Switches

Notes

If the command has the form <entity> = arc, an entity is always created.

If the command has no entity assignment, then an entity will be created only if the -op option is not used, or the command is not within another entity creation block, e.g. lines, polygon.

All point parameter expressions are computed relative to the last computed point parameter.

Examples

Create an unnamed arc entity (180 degree sweep).

arc -s=p0, -m=e:100&n:100, -e=e:100&s:100, -col=red

Create a named arc entity (90 degree sweep).

entity my_arc = arc -c=p0, -s=e:100, -a=90, -o=a

Store arc points into an array (no entity created).

point arcps[]
arc -s=gc, -e=e:5000, -h=n:150, -op=arcps

Add arc points to a face entity under creation.

polygon -no_draw {
    gc, e:1000, n:200
    arc -e=n:600, -r=300, -o=c, -ap=32
    n:200, w:1000, r
}

See Also

Commands:

circle, ellipse, entity, gstructure, point

Identifiers:

angle_mode (numeric), def_color (color), def_approx (numeric), def_fragment (numeric), def_rank (numeric)

Structures:

entity (arc)