4 Data Structures
TQ3PolyLineData
data type. See "Creating and Editing Polylines," beginning on page 4-68 for a description of the routines you can use to create and edit polylines. Figure 4-11 shows a polyline.A polyline is not closed. The last point should not be connected to the first.<8bat>s
typedef struct TQ3PolyLineData { unsigned long numVertices; TQ3Vertex3D *vertices; TQ3AttributeSet *segmentAttributeSet; TQ3AttributeSet polyLineAttributeSet; } TQ3PolyLineData;numVertices
The number of vertices in the polyline. The value of this field must be at least 2.vertices
A pointer to an array of vertices which define the polyline.segmentAttributeSet
A pointer to an array of segment attribute sets. If no segments in the polyline are to have attributes, this field should contain the valueNULL
. If any of the segments have attributes, this field should contain a pointer to an array (containingnumVertices
- 1 elements) of attributes sets; the array element for segments with no attributes should be set toNULL
.polyLineAttributeSet
A set of attributes for the polyline. The value in this field isNULL
if no polyline attributes are defined.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker