SplitMesh

PolygonModifier.SplitMesh method (1 of 3)

Split mesh into sub-meshes by VertexElementMaterial. Each sub-mesh will use only one material. Perform mesh splitting on a node

public static void SplitMesh(Node node, SplitMeshPolicy policy, bool createChildNodes = false, 
    bool removeOldMesh = true)
Parameter Type Description
node Node
policy SplitMeshPolicy
createChildNodes Boolean Create child nodes for each sub-mesh.
removeOldMesh Boolean Remove the old mesh after split, if this parameter is false, the old and new meshes will co-exists.

See Also


PolygonModifier.SplitMesh method (2 of 3)

Split mesh into sub-meshes by VertexElementMaterial. Each sub-mesh will use only one material. Perform mesh splitting on all nodes of the scene.

public static void SplitMesh(Scene scene, SplitMeshPolicy policy, bool removeOldMesh = true)
Parameter Type Description
scene Scene
policy SplitMeshPolicy
removeOldMesh Boolean

See Also


PolygonModifier.SplitMesh method (3 of 3)

Split mesh into sub-meshes by VertexElementMaterial. Each sub-mesh will use only one material. The original mesh will not get changed.

public static Mesh[] SplitMesh(Mesh mesh, SplitMeshPolicy policy)

See Also