Project

General

Profile

Previous Up Next

M3createExactModel
Creates an exact collision model for the mesh.
More precisely, this function builds a particular structure for the polygonal detection of collisions for the topology associated with the mesh.
This collision model is contained directly in the topology.

I M3createExactModel (
S3d _session_
H3d _mesh_
)
Parameters

_session_
3D Session
_mesh_
Mesh (with single topology)
Return value

0 if successful, otherwise nil
Remark

Warning : This function requires the topology to be unique and constant.
Therefore it can only be applied to meshes in MESH_STATIC mode, excluding meshes in MESH_MULTI_TOPO mode, or meshes with shared or deformed vertices.