next up previous contents index
Next: 6.7.17 POLYGON3N (p, c) Up: 6.7 Keywords defining Geometric Previous: 6.7.15 POINTMATRIX (m)   Contents   Index


6.7.16 POLYGON3 (p, c)

Creates a polygon out of one or more contours of 3D points, given by c.

The 3D points are projected onto a plane (given by p), afterwards the resulting 2D contours are triangulated, and finally the triangles are mapped back into 3D again.

p is also used for deciding which sides of the triangles are the front sides, and for defining a parametrization of the polygon plane (can be used as 2D texture coordinates).

c is a typeless node to which the contours (lists of 3D points) are connected. p is a typeless node to which 3 points A, B, C are connected. A is used as the origin of the polygon plane, B-A and C-A as the two basis vectors, and the orientation of the cross product (B-A) x (C-A) determines which side of the plane is the front side.

The following variations of this keyword exist (some of them define the same internal structures, and are only defined to allow consistent naming conventions):

Keyword numbers
POLYGON3 float
POLYGON3_F float
POLYGON3_D double


next up previous contents index
Next: 6.7.17 POLYGON3N (p, c) Up: 6.7 Keywords defining Geometric Previous: 6.7.15 POINTMATRIX (m)   Contents   Index
Administrator 2002-01-20