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