split_mesh method

split_mesh

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

Returns

def split_mesh(self, mesh, policy):
    ...
ParameterTypeDescription
meshMesh
policySplitMeshPolicy

split_mesh

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

def split_mesh(self, scene, policy, remove_old_mesh):
    ...
ParameterTypeDescription
sceneScene
policySplitMeshPolicy
remove_old_meshbool

split_mesh

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

def split_mesh(self, node, policy, create_child_nodes, remove_old_mesh):
    ...
ParameterTypeDescription
nodeNode
policySplitMeshPolicy
create_child_nodesboolCreate child nodes for each sub-mesh.
remove_old_meshboolRemove the old mesh after split, if this parameter is false, the old and new meshes will co-exists.

See Also