Click or drag to resize

MeshSplitMesh Method

Some file formats and rendering engines are only able to process small batches of triangles. Use this function to split 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[] SplitMesh(
	Mesh mesh,
	int maxCount,
	bool countSum,
	bool countTriangles
)

Parameters

mesh
Type: Rhino.GeometryMesh
Mesh to split.
maxCount
Type: SystemInt32
Maximum count.
countSum
Type: SystemBoolean
If true, split if total vertices + faces is greater than maxCount. If false, split if either total vertices or faces is greater than maxCount.
countTriangles
Type: SystemBoolean
If true, count triangles. If false, count triangles and quads.

Return Value

Type: Mesh
An array of sub-meshes if successful, otherwise an empty array.
See Also