BrepPrepareForBooleans Method |
Prepares this Brep for a Boolean or intersection operation by applying the
same cleanup Rhino performs when a Brep is added to the document. Breps that
have never been added to a document can fail these operations, or return
unexpected results, without it.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic bool PrepareForBooleans()
Public Function PrepareForBooleans As Boolean
Return Value
Type:
Booleantrue if the Brep is ready to use, false otherwise.
Remarks
Because kinked surfaces can cause problems downstream, Rhino, by default,
splits kinked surfaces when adding Breps to the document. So this method
splits all kinky Brep faces. Also, because inward pointing face normals for
solid Breps can cause problems, Rhino flips inward pointing normals for solids
when adding Breps to the document. So this method checks the solid orientation
and, if inward, flips the face normals.
This method modifies the Brep in place. If it returns false, then the Brep was
modified but is no longer valid. Duplicate the Brep first if you need to keep
the original, and note that flipping an inward pointing solid discards a
deliberately inside out orientation.
See Also