CurveBrepIntersect

Intersects a curve object with a brep object. Note, unlike the CurveSurfaceIntersection function, this function works on trimmed surfaces.

Syntax

Rhino.CurveBrepIntersect (strCurve, strBrep [, dblTolerance])

Parameters

strCurve

Required.  String.  The curve object's identifier.

strBrep

Required.  String.  The brep object's identifier.

dblTolerance

Optional.  Number.  The distance tolerance at segment midpoints.  If omitted, the current absolute tolerance is used..

Returns

Array

An array of strings identifying the newly created intersection curve and point objects if successful.

Null

If not successful, or on error.

Example

Dim strCurve, strBrep

strCurve = Rhino.GetObject("Select a curve", 4)

If Not IsNull(strObject) Then

strBrep = Rhino.GetObject("Select a brep", 24)

If Not IsNull(strBrep) Then

Rhino.CurveBrepIntersect strCurve, strBrep

End If

End If

Also See

CurveSurfaceIntersection