Performs a Boolean union operation on a set of input surfaces and polysurfaces. For more details, see the BooleanUnion command in the Rhino help file.
rhinoscriptsyntax.BooleanUnion (input, delete_input=True)
rhinoscript.surface.BooleanUnion (input, delete_input=True)
input |
Required. List. The identifiers of the surfaces or polysurfaces to union. |
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
input = rs.GetObjects("Select surfaces or polysurfaces to union", rs.filter.surface | rs.filter.polysurface)
if input and len(input)>1: rs.BooleanUnion(input)