Click or drag to resize

MeshSplit Method (IEnumerableMesh, Double, Boolean, Boolean, TextLog, CancellationToken, IProgressDouble)

Split a mesh with a collection of meshes.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.0
Syntax
public Mesh[] Split(
	IEnumerable<Mesh> meshes,
	double tolerance,
	bool splitAtCoplanar,
	bool createNgons,
	TextLog textLog,
	CancellationToken cancel,
	IProgress<double> progress
)

Parameters

meshes
Type: System.Collections.GenericIEnumerableMesh
Meshes to split with.
tolerance
Type: SystemDouble
A value for intersection tolerance.

WARNING! Correct values are typically in the (10e-8 - 10e-4) range.

An option is to use the document tolerance diminished by a few orders or magnitude.

splitAtCoplanar
Type: SystemBoolean
If false, coplanar areas will not be separated.
createNgons
Type: SystemBoolean
If true, creates ngons along the split ridge.
textLog
Type: Rhino.FileIOTextLog
A text log to write onto.
cancel
Type: System.ThreadingCancellationToken
A cancellation token.
progress
Type: SystemIProgressDouble
A progress reporter item. This can be null.

Return Value

Type: Mesh
An array of mesh parts representing the split result, or null: when no mesh intersected, or if a cancel stopped the computation.
See Also