Command: route

Syntax

{<entity> = } route <point> {
    <pcommand>
    ...
}

Description

Create a route of polygon graphic entities.

Parameters

Switches

Notes

This command always creates one or more graphic entities. Duplicate consecutive points are ignored.

The symbology of polygon edges may be changed by using relevant assignments within the command block, e.g. def_color = blue.

The polygons created will be three or 4-sided depending on the effect of the extrusion point phrase on a vertex.

Polygons which reduce to a line for one reason or another are ignored.

During edge definition, a point phrase beginning with a @ will indicate a move of the graphic control position without creating a polygon. A phrase beginning with a $ will indicate a polygon with linestyled edges, using linestyle def_ls. If neither prefix is present, the linestyle given by the -ls switch is used.

Examples

Create four unnamed polygon entities.

route u:250 { gc, e:500, n:500, w:250, r }

Create unnamed polygon entities (the edges are defined interactively).

plan
route u:700, -col=green, -fil=yellow {
    pseries # Command
    r; # Point phrase "return to start"
}

Create named polygon entities in a command block (via a regular polygon of 64 edges).

angle_mode='radians'
numeric nedges = 64, radius = 1000
numeric ang = 0, delta = 1.5*pi/nedges
entity tent[] = route (500,500,1500), -fil=khaki {
    for i=1,nedges { # Command
        (radius*sin(ang),radius*cos(ang),0); # Point phrase
        ang += delta; # Command
    }
}

See Also

Commands:

entity, gstructure, point, polygon, prism

Identifiers:

angle_mode (string), def_color (color), def_fragment (numeric), def_ls (linestyle), def_rank (numeric)

Structures:

entity (polygon)