vdsTri* vdsAddTri (int v0, int v1, int v2)

Add a triangle of the original model


Add a triangle of the original model. Given a triangle (specified as three corner indices into a vertex list) creates a vdsTri struct with the given attributes. Later, when vdsEndVertexTree() is called, each tri will be copied directly into the subtri array of the appropriate node. Note that the vertices indexed by the triangle must already have been added via vdsAddNode().
A pointer to the created vdsTri struct, in case the user wishes to create a tri->data field. NOTE: This pointer is only guaranteed valid until the next call to vdsAddTri() or vdsEndGeometry(). Note: vdsAddTri() must be called between vdsBeginGeometry() and vdsEndGeometry().

alphabetic index hierarchy of classes