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)
ParameterTypeDescription
nodeNode
policySplitMeshPolicy
createChildNodesBooleanCreate child nodes for each sub-mesh.
removeOldMeshBooleanRemove 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)
ParameterTypeDescription
sceneScene
policySplitMeshPolicy
removeOldMeshBoolean

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