4 Data Structures
The entire simple polygon can have a set of attributes, and any or all of the vertices defining the polygon can have a set of attributes.
A simple polygon is defined by the TQ3PolygonData
data type. See "Creating and Editing Simple Polygons," beginning on page 4-81 for a description of the routines you can use to create and edit simple polygons. Figure 4-13 shows a simple polygon.
typedef struct TQ3PolygonData { unsigned long numVertices; TQ3Vertex3D *vertices; TQ3AttributeSet polygonAttributeSet; } TQ3PolygonData;numVertices
The number of vertices in the simple polygon. The value of this field must be at least 3.vertices
A pointer to an array of vertices that define the simple polygon.polygonAttributeSet
A set of attributes for the simple polygon. The value in this field isNULL
if no polygon attributes are defined.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker