split_mesh method
Contents
[
Hide
]split_mesh(, mesh, policy)
Split mesh into sub-meshes by VertexElementMaterial
.
Each sub-mesh will use only one material.
The original mesh will not get changed.
Returns
New splitted meshes
@staticmethod
def split_mesh(mesh, policy):
...
Parameter | Type | Description |
---|---|---|
mesh | Mesh | |
policy | SplitMeshPolicy |
split_mesh(, scene, policy, remove_old_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.
@staticmethod
def split_mesh(scene, policy, remove_old_mesh):
...
Parameter | Type | Description |
---|---|---|
scene | Scene | |
policy | SplitMeshPolicy | |
remove_old_mesh | bool |
split_mesh(, node, policy, create_child_nodes, remove_old_mesh)
Split mesh into sub-meshes by VertexElementMaterial
.
Each sub-mesh will use only one material.
Perform mesh splitting on a node
@staticmethod
def split_mesh(node, policy, create_child_nodes, remove_old_mesh):
...
Parameter | Type | Description |
---|---|---|
node | Node | |
policy | SplitMeshPolicy | |
create_child_nodes | bool | Create child nodes for each sub-mesh. |
remove_old_mesh | bool | Remove the old mesh after split, if this parameter is false, the old and new meshes will co-exists. |
See Also
- module
aspose.threed.entities
- class
PolygonModifier
- class
VertexElementMaterial