EditModel3D.SetActiveMesh

This page contains reference documentation for the SetActiveMesh function. This function sets a mesh as the active mesh in the scene graph.

Prototype

int SetActiveMesh( Mesh NewActiveMesh )

Parameters

Function parameters are as follows:

Examples

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 );
}

Working Sample Code

For sample code: