Previous Up Next

M3topoAddFaceF
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 floating-point values. The edges of a texture are 0.0 and 1.0

I M3topoAddFaceF (
S3d _session_
H3d _topo_
[I I I] _vertRef_
[[F F] [F F] [F F]] _texCoords1_
[[F F] [F F] [F F]] _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