PolygonMesh

A PolygonMesh primitive is used to store data imported from a standard modeler application.

The NumVerts, Data or DataTx, NumPolys and Polys parameters must be defined.

Models are not imported automatically. If you have a model to be converted, please contact AGI for conversion options.
When defining a PolygonMesh, the Data or DataTx keyword must be on a line by itself. In addition, each point (defined by <x> , <y> and <z> or <x> , <y> , <z> <u> and <v> ) in the polygon should be on a line by itself.

PolygonMesh primitive parameters

NumVerts <Value>

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

Parameter <Value>
Range  
Default  
(R)eal #, (I)nteger? I
Description Number of unique vertices in the polygon mesh.

Data <x> <y> <z>

Each row in the Data parameter specifies one point of the mesh.

If the imported PolygonMesh has a texture, the DataTx parameter must be used instead of the Data parameter

Parameter <Value>
Range any real #
Default ____
(R)eal #, (I)nteger? R
Description Cartesian position of the polygon.

DataTx <x> <y> <z> <u> <v> …

Parameter <Value>
Range any real #
Default ____
(R)eal #, (I)nteger? R
Description Use when applying a texture to the polygon. X, Y and Z positions for each of the points in the polygon, while u and v indicate the texture coordinates.

NumPolys <Value>

Parameter <Value>
Range > 1
Default  
(R)eal #, (I)nteger? I
Description Number of polygons to be drawn.

Polys

Parameter <Value>
Range any real #
Default ____
(R)eal #, (I)nteger? R
Description Identifies the number of vertices in the polygon. The next three numbers are the values of the polygon vertices to be used, where each value represents the index to the Data point. Indices begin at 0.

The DC3.mdl model contains a number of PolygonMesh primitives:

FaceColor DimGray
PolygonMesh

NumVerts 814
Data
-6.677274 -7.523157 -0.224308
-6.676358 -3.998442 -0.784426
-14.847510 -5.079158 -0.033242
-15.159328 -4.926182 -0.056863
-15.386668 -4.682325 -0.068335
-15.393899 -4.436527 -0.123440
.
.
.
-2.701435 -4.675788 -0.494962
-2.706281 -4.249998 -0.619920
-2.771291 -3.922410 -0.724011
-2.921205 -3.525815 -0.810024
-3.570766 -7.826501 -0.206307
NumPolys 1576
Polys
3 350 251 114
3 358 349 357
3 3 2 341
3 401 9 334
3 340 332 339
3 397 4 327
.
.
.
3 813 93 369
3 556 545 763
EndPolygonMesh

EndComponent

The PolygonMesh primitive for this model includes the fuselage and the wings; it consists of 814 vertices and 1576 polygons.