Previous Up Next

M3topoAddFace
Takes a topology as a parameter.
Adds a face to the list of faces of a topology referenced by the mesh.
The function returns the number of the face added. The parameters are as follows :
- vertRef : the indices which reference the vertices (in the mesh’s list of vertices)
- texCoords1 : texture coordinates for the face’s 3 vertices (texture #1)
- texCoords2 : texture coordinates for the face’s 3 vertices (texture #2)
- material : handle of the material used for the face
The texture coordinates are integer values. The edges of a texture are 0 and 255

I M3topoAddFace (
S3d _session_
H3d _topo_
[I I I] _vertRef_
[[I I] [I I] [I I]] _texCoords1_
[[I I] [I I] [I I]] _texCoords2_
HMat3d _material_
)
Parameters

_session_
3D Session
_topo_
Topology
_vertRef_
Indices of the three vertices
_texCoords1_
Texture coordinate 1
_texCoords2_
Texture coordinate 2
_material_
Material
Return value

0 if successful, otherwise nil