cxGeoTrisDefine - define a triangle mesh object
#include <cx/Geometry.h>

cxGeo cxGeoTrisDefine( int npoint, float *point, int nindex, int *index )
integer function cxGeoTrisDefine(n,point, nindex, index)
integer npoint
real point(3, npoint)
integer nindex
integer index(nindex)
Number of points.
An array of XYZ triples for vertices.
Number of indices.
Indices into the points array.
This function creates a set of triangle meshes. The vertices are supplied in point and their connectivity is given in index.

Indexing of vertices is zero-based, i.e. the first vertex is referenced by index 0, and the last by npoint - 1. An index element value of -1 indicates the end of a triangle mesh. An index element value of -2 indicates a vertex swap.

The return value is a tag for this object that may be used to reference it at a later time with cxGeoFocus(3E).

Valid attributes are colors, normals, and transparencies. Attribute distribution may be CX_GEO_PER_OBJECT, CX_GEO_PER_FACE, CX_GEO_PER_VERTEX, or CX_GEO_PER_VERTEX_INDEXED.

Last modified: Mon Nov 6 16:33:20 GMT 2000
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1999

Website Feedback

If you would like a response from NAG please provide your e-mail address below.

(If you're a human, don't change the following field)
Your first name.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.