Performs a Boolean difference operation on two sets of input surfaces and polysurfaces. For more details, see the BooleanDifference command in the Rhino help file.
rhinoscriptsyntax.BooleanDifference (input0, input1, delete_input=True)
rhinoscript.surface.BooleanDifference (input0, input1, delete_input=True)
input0 |
Required. List. The identifiers of the surfaces or polysurfaces to subtract from. |
input1 |
Required. List. The identifiers of the surfaces or polysurfaces to be subtracted. |
delete_input |
Optional. Boolean. Delete all input objects. The default is to delete all input objects (True). |
List |
A list containing the identifiers of the newly created objects, if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
filter = rs.filter.surface | rs.filter.polysurface
input0 = rs.GetObjects("Select first set of surfaces or polysurfaces", filter)
if input0:
input1 = rs.GetObjects("Select second set of surfaces or polysurfaces", filter)
if input1: rs.BooleanDifference(input0, input1)