MeshSelfSplit Method (Double, Boolean, Boolean, TextLog, CancellationToken, IProgressDouble) |
Split a mesh with itself.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic Mesh[] SelfSplit(
double tolerance,
bool splitAtCoplanar,
bool createNgons,
TextLog textLog,
CancellationToken cancel,
IProgress<double> progress
)
Public Function SelfSplit (
tolerance As Double,
splitAtCoplanar As Boolean,
createNgons As Boolean,
textLog As TextLog,
cancel As CancellationToken,
progress As IProgress(Of Double)
) As Mesh()
Parameters
- 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:
MeshAn array of mesh parts representing the split result, or null: when no mesh intersected, or if a cancel stopped the computation.
See Also