Intersects a curve object with a brep object. Note, unlike the CurveSurfaceIntersection function, this function works on trimmed surfaces.
rhinoscriptsyntax.CurveBrepIntersect (curve_id, brep_id, tolerance=None)
rhinoscript.curve.CurveBrepIntersect (curve_id, brep_id, tolerance=None)
curve_id |
Required. String or Guid. The curve object's identifier. |
brep_id |
Required. String or Guid. The brep object's identifier. |
tolerance |
Optional. Number. The distance tolerance at segment midpoints. If omitted, the current absolute tolerance is used.. |
Tuple |
A list of curve identifiers and a list of point identifiers for the newly created intersection curve and point objects if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
curve = rs.GetObject("Select a curve", rs.filter.curve)
if curve:
brep = rs.GetObject("Select a brep", rs.filter.surface + rs.filter.polysurface)
if brep: rs.CurveBrepIntersect( curve, brep )