MeshCreateBooleanDifference Method (IEnumerableMesh, IEnumerableMesh, MeshBooleanOptions, Result, Int32) |
Computes the solid difference of two sets of meshes and reports which inputs contributed to each output.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic static Mesh[] CreateBooleanDifference(
IEnumerable<Mesh> firstSet,
IEnumerable<Mesh> secondSet,
MeshBooleanOptions options,
out Result result,
out int[][] inputMap
)
Public Shared Function CreateBooleanDifference (
firstSet As IEnumerable(Of Mesh),
secondSet As IEnumerable(Of Mesh),
options As MeshBooleanOptions,
<OutAttribute> ByRef result As Result,
<OutAttribute> ByRef inputMap As Integer()()
) As Mesh()
Parameters
- firstSet
- Type: System.Collections.GenericIEnumerableMesh
First set of Meshes (the set to subtract from). - secondSet
- Type: System.Collections.GenericIEnumerableMesh
Second set of Meshes (the set to subtract). - options
- Type: Rhino.GeometryMeshBooleanOptions
An option instance. Should have a valid Tolerance set. - result
- Type: Rhino.CommandsResult
Indicates if the function succeeded, was cancelled, did nothing, or failed. - inputMap
- Type: SystemInt32
On success, one array per output mesh (parallel to the returned array), listing the indices of the
input meshes that contributed faces to that output. The index space is flat-concatenated:
firstSet occupies 0..n0-1 and secondSet occupies n0..n0+n1-1,
in enumeration order; null inputs are skipped and not assigned an index. Null when the function fails.
Return Value
Type:
MeshAn array of Mesh results or null on failure.
See Also