Path

Description:              This function returns a graphics path value.

Returns:                    Path

Usage:                       Steady State

Format:                      Path(Closed, V1, V2, ...)

Parameters:             Closed    { Boolean }  { required }  { no default }

                                      Any logical expression. If true, this is a closed path; and the last Vertex is considered to be connected to the first point. If false, this is an open path, which ends at the last Vertex.

                                    V1, V2, ...    { Vertex }  { required }  { no default }

                                      Any expressions that return Vertex values.

Comments:               Paths are used to determine the shape of polygons, and as trajectories (animation motion paths).

Example:

truckPath = Path(0 { Open path, doesn't close on self },

                Vertex(0 { Rectangular mode }, 

                Point(20, 200, Invalid, Invalid), 

                Point(20, 200, Invalid, Invalid),

                Point(20, 200, Invalid, Invalid)),

                Vertex(0 { Rectangular mode },

                Point(200, 200, Invalid, Invalid),

                Point(200, 200, Invalid, Invalid),

                Point(200, 200, Invalid, Invalid)),

                endVertex { A variable containing a vertex }); 

This shows a 3 vertex path with one vertex found in a variable. This vertex might be used in other functions, such as another path.

See Also:

GUIPolygon | Point | Trajectory | Vertex