Q3Mesh_FaceNew
You can use the Q3Mesh_FaceNew function to add a face to a mesh.
TQ3MeshFace Q3Mesh_FaceNew (
TQ3GeometryObject mesh,
unsigned long numVertices,
const TQ3MeshVertex *vertices,
TQ3AttributeSet attributeSet);
mesh
- A mesh.
numVertices
- The number of mesh vertices in the
vertices array.
vertices
- A pointer to an array of mesh vertices defining the new mesh face. These vertices can be ordered either clockwise or counterclockwise.
attributeSet
- The desired set of attributes for the new mesh face. Set this parameter to
NULL if you do no want any attributes for the new face.
DESCRIPTION
The Q3Mesh_FaceNew function adds the face specified by the vertices parameter to the mesh specified by the mesh parameter. The mesh must already exist before you call Q3Mesh_FaceNew. The new mesh face is returned as the function result.