CurveBooleanDifference

Calculates the difference between two closed, planar curves and adds the results to the document. Note, curves must be coplanar.

Syntax

rhinoscriptsyntax.CurveBooleanDifference (curve_id_0, curve_id_1)

rhinoscript.curve.CurveBooleanDifference (curve_id_0, curve_id_1)

Parameters

curve_id_0

Required.  String or Guid.  The identifier of the first curve object.

curve_id_1

Required.  String or Guid.  The identifier of the second curve object.

Returns

List

The identifiers of the new objects if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

curveA = rs.GetObject("Select first curve", rs.filter.curve)

curveB = rs.GetObject("Select second curve", rs.filter.curve)

arrResult = rs.CurveBooleanDifference(curveA, curveB)

if arrResult:

    rs.DeleteObject( curveA )

    rs.DeleteObject( curveB )

Also See

CurveBooleanIntersection

CurveBooleanUnion