Command: circle

Syntax

{<entity> =} circle

Description

Create a circle graphic entity, or a series of points forming a circle.

Parameters

Switches

Notes

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

If the command has no entity assignment, an entity will only be created when the -op option is not used, or if 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 circle entity.

circle -c=p0, -r=500

Create a named circle entity.

entity my_circ = circle -c=p0, -s=my_point, -ls=green

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

point cps[]
circle -s=gc, -m=(200,300,0), -e=my_point, -op=cps

Add circle points to a lines entity under creation.

lines -no_draw {
    gc, e:500
    circle -r=100, -n=e, -ap=32
}

See Also

Commands:

arc, entity, gstructure, point

Identifiers:

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

Structures:

entity (circle)