DoTriangleList(3D)

NAME
DoTriangleList - Create a triangle list primitive object

SYNOPSIS
C:
DtObject DoTriangleList(colormodel, vertextype,
		trianglecount, vertices)
DtColorModel colormodel;
DtVertexType vertextype;
DtInt trianglecount;
DtReal vertices[];

FORTRAN:
INTEGER*4 DOTRIL(COLMOD, VTXTYP, TRICNT,
		VTXS)
INTEGER*4 COLMOD
INTEGER*4 VTXTYP
INTEGER*4 TRICNT
REAL*8 VTXS(*)

DESCRIPTION
DoTriangleList creates a primitive object that defines a list of independent triangles. The parameter colormodel specifies the color model used if the vertices contain color information for shading. The parameter vertextype specifies the exact nature of the vertices. for more information, refer to Chapter 6, Dore Vertex Types, in the Dore Reference Manual or to the VertexTypes on-line manual page.) The parameter vertices is an array of vertex data. It must contain data for 3*trianglecount vertices.

The geometric normal to each triangle is calculated using the right-hand rule (when the fingers of the right hand point in the order of the vertices, the thumb points toward of the normal). Dore uses these normals for backface culling and facet shading.

SEE ALSO
DoTriangleMesh(3D), DoTriangleStrip(3D), VertexTypes(3D)