split_mesh method
Contents
[
Hide
]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):
...
Parameter | Type | Description |
---|---|---|
mesh | Mesh | |
policy | SplitMeshPolicy |
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):
...
Parameter | Type | Description |
---|---|---|
scene | Scene | |
policy | SplitMeshPolicy | |
remove_old_mesh | bool |
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):
...
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