Skip to content

Brep.CreateBooleanDifference (Brep, Brep, Double, Boolean)

Public Class

Compute the Solid Difference of two Breps.

Namespace: Rhino.Geometry

Assembly: RhinoCommon (in RhinoCommon.dll)

**Since:**6.0

Syntax

public static Brep[] CreateBooleanDifference(
Brep firstBrep,
Brep secondBrep,
double tolerance,
bool manifoldOnly
)

Parameters

firstBrep

Type: Rhino.Geometry.Brep
First Brep for boolean difference.

secondBrep

Type: Rhino.Geometry.Brep
Second Brep for boolean difference.

tolerance

Type:System.Double
Tolerance to use for difference operation.

manifoldOnly

Type:System.Boolean
If true, non-manifold input breps are ignored.

Return Value

Type:. Brep.
An array of Brep results or null on failure.

Remarks

The solid orientation of the breps make a difference when calling this function