This page contains reference documentation for the SetActiveMesh function. This function sets a mesh as the active mesh in the scene graph.
int SetActiveMesh( Mesh NewActiveMesh )
Function parameters are as follows:
Examples are as follows:
// Set the selected mesh as Active Mesh.
Node node = Model.GetSelectedNode( i ).GetNode();
if( node.IsDerived( ParametricMesh ) )
{
Model.SetActiveMesh ( (ParametricMesh)node );
}
For sample code: