Wiki > TV3D65 Index > TVMesh
SetGeometry
DESCRIPTION
-Sets the custom vertex list to mesh. This is used to create a custom mesh.
DECLARATION
| VB.NET | SetGeometry(vVerticesArray As TV_SVERTEX() , iNumVertices As Integer , pIndicesArray() As Integer , iNumFaces As Integer , iNumGroups As Integer , iFaceGroupArray() As Integer , bOptimizeMesh As Boolean) |
| C++ | void SetGeometry(cTV_SVERTEX vVerticesArray , etc) |
PARAMETERS
| NAME | OPTIONAL | DESCRIPTION |
| vVerticesArray | No | The 1-dimensional array of TV_SVERTEX |
| iNumVertices | No | Number of vertices. |
| pIndicesArray | No | The indices array is a pointer for every 3 positions in the array to the vertex that makes up a triangle. Size should always be iNumFaces * 3. See example for more. |
| iNumFaces | No | Number of triangles that make up the mesh. |
| iNumGroups | Yes | iNumGroups description |
| iFaceGroupArray | Yes | iFaceGroupArray description |
| bOptimizeMesh | Yes | bOptimizeMesh description |
RETURN VALUE
| Null | Does not return a value. |
EXAMPLES
| Example | Example of creating a rectangle with 4 vertices. |
TIPS