4 Creating and Editing Meshes
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 thevertices
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 toNULL
if you do no want any attributes for the new face.
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.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker