Deprecated: Function split() is deprecated in /home/wiki/public_html/inc/common.php on line 533

Warning: Cannot modify header information - headers already sent by (output started at /home/wiki/public_html/inc/common.php:533) in /home/wiki/public_html/inc/actions.php on line 71
tvmesh:setgeometry [TV3DWiki]
 
Table of Contents

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

NAMEOPTIONALDESCRIPTION
vVerticesArrayNoThe 1-dimensional array of TV_SVERTEX
iNumVerticesNoNumber of vertices.
pIndicesArrayNoThe 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.
iNumFacesNoNumber of triangles that make up the mesh.
iNumGroupsYesiNumGroups description
iFaceGroupArrayYesiFaceGroupArray description
bOptimizeMeshYesbOptimizeMesh description

RETURN VALUE

Null Does not return a value.

EXAMPLES

ExampleExample of creating a rectangle with 4 vertices.

TIPS

 
tvmesh/setgeometry.txt · Last modified: 2012/02/09 14:12 by 50.34.225.74