Some file formats and rendering engines are only able to process small batches of triangles.
Use this function to partition the mesh into subsets of vertices and faces that those file formats
and rendering engines can handle.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 8.25
Syntaxpublic static Mesh[] PartitionMesh(
Mesh mesh,
int maxVertexCount,
int maxFaceCount
)
Public Shared Function PartitionMesh (
mesh As Mesh,
maxVertexCount As Integer,
maxFaceCount As Integer
) As Mesh()
Parameters
- mesh
- Type: Rhino.GeometryMesh
Mesh to partition. - maxVertexCount
- Type: SystemInt32
Maximum number of vertices in a partition./// - maxFaceCount
- Type: SystemInt32
Maximum number of faces in a partition.
Return Value
Type:
MeshAn array of sub-meshes if successful, otherwise an empty array.
Remarks
The resulting sub-meshes tend to be less disjoint than the output of .
The less disjoint meshes will take more time to compute.
See Also