This record stores the coordinates of the vertices in a polygon object.
Record Data
Offset |
Name |
Size |
Contents |
4 |
rgVTX |
var |
Array of vertex coordinates |
The VTX structure is defined as follows:
typedef struct _vtx
{
unsigned short int x;
unsigned short int y;
}
VTX;
The upper-left corner of a polygon's bounding rectangle is (x = 0h, y = 0h), and the lower-right corner is (x = 4000h, y = 4000h), as shown in the following illustration.
After the polygon is drawn, Microsoft Excel normalizes the coordinates in rgVTX to the bounding rectangle. The actual size of the polygon can be derived from the size of the bounding rectangle in the common object fields section of the OBJ record.