2.2.4.3 MIL_PATHFIGURE

The MIL_PATHFIGURE packet describes the contents of a path figure. It is immediately followed by a set of segment structures contained in the Segments field. The SegmentCount field specifies the quantity of segment structures.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

BackSize

Flags

SegmentCount

messageSize

StartPoint (16 bytes)

...

...

OffsetToLastSegment

reserved

Segments (variable)

...

BackSize (4 bytes): A 32-bit unsigned integer. The offset in bytes to the previous path figure structure in the current path geometry. The value of this field MUST be set to zero if this is the first path figure in the current path geometry.

Flags (4 bytes): A MilPathFigureFlags enumeration. The properties of this path figure.

SegmentCount (4 bytes): A 32-bit unsigned integer. The number of segments in this path figure.

messageSize (4 bytes): A 32-bit unsigned integer. The total size of this message and its payload in bytes. The value of this field MUST be greater than or equal to 0x00000028 and MUST be divisible by four.

StartPoint (16 bytes): A MilPoint structure. The start point of this path figure.

OffsetToLastSegment (4 bytes): A 32-bit unsigned integer. The offset of the start of this segment, measured in bytes relative to the start of the last segment.

reserved (4 bytes): Reserved. MUST be set to zero when sent, and MUST be ignored when received.

Segments (variable): A variable-length array of either MIL_SEGMENT_LINE or MIL_SEGMENT_POLY structures. This is the collection of segments contained in this path figure. The value of this field MUST be a sequence of exactly SegmentCount valid segment structures along with their payloads.