A sample polygon instance
The following figure shows a polygon with one hole and
a total of eight vertices.
For this example, NumParts equals 2 and NumPoints equals
10. Note that the order of the points for the doughnut (hole) polygon
is reversed below.
The following table shows Polygon byte stream contents
Position | Field | Value | Type | Number | Byte order |
---|---|---|---|---|---|
Byte 0 | Shape Type | 5 | Integer | 1 | Little endian |
Byte 4 | Box | Box | Double | 4 | Little endian |
Byte 36 | NumParts | NumParts | Integer | 1 | Little endian |
Byte 40 | NumPoints | NumPoints | Integer | 1 | Little endian |
Byte 44 | Parts | Parts | Integer | NumParts | Little endian |
Byte X | Points | Points | Point | NumPoints | Little endian |
Tip: X = 44 + (4 * NumParts)