Click or drag to resize

MeshPartitionMesh Method

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
Syntax
public static Mesh[] PartitionMesh(
	Mesh mesh,
	int maxVertexCount,
	int maxFaceCount
)

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: Mesh
An 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