Calculates the union of two or more closed, planar curves and adds the results to the document. Note, curves must be coplanar.
rhinocsriptsyntax.CurveBooleanUnion (curve_ids)
rhinocsript.curve.CurveBooleanUnion (curve_ids)
curve_ids |
Required. List. The identifiers of two or more curve objects. |
List |
The identifiers of the new objects if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
curve_ids = rs.GetObjects("Select curves to union", rs.filter.curve)
if curve_ids and len(curve_ids)>1:
result = rs.CurveBooleanUnion(curve_ids)
if result: rs.DeleteObjects(curve_ids)