Polygon

A Polygon primitive causes an area defined by the Data points to be drawn.

Polygon primitive parameters

NumVerts <Value>

The NumVerts parameter defines the number of points contained in the Data parameter.

Parameter <Value>
Range > 3
Default N/A
(R)eal #, (I)nteger? I
Description Number of vertices in the polygon.

Data <Vertices>

Each row in the Data parameter specifies one point of the polygon. Both the NumVerts and Data parameters must be specified.

When defining a polygon, the Data keyword must be on a line by itself. In addition, each point (defined by <x> , <y> and <z> ) in the polygon must be on a line by itself.

Parameter <Value>
Range any real #
Default N/A
(R)eal #, (I)nteger? R
Description Cartesian coordinates of the polygon.

The AAAMOBILE.mdl model contains a number of polygon primitives:

Component TankTurretCtrBk

Polygon
FaceColor DarkOliveGreen4
NumVerts 4
Data
0.0 4.1 0.0
0.0 4.1 1.8
0.0 -4.1 1.8
0.0 -4.1 0.0
EndPolygon

EndComponent