CurveBooleanUnion

Calculates the union of two or more closed, planar curves and adds the results to the document. Note, curves must be coplanar.

Syntax

rhinocsriptsyntax.CurveBooleanUnion (curve_ids)

rhinocsript.curve.CurveBooleanUnion (curve_ids)

Parameters

curve_ids

Required.  List.  The identifiers of two or more curve objects.

Returns

List

The identifiers of the new objects if successful.

None

If not successful, or on error.

Example

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)

Also See

CurveBooleanDifference

CurveBooleanIntersection