mcneel / rhinocommon

RhinoCommon is the .NET SDK for Rhino5 / Grasshopper
http://wiki.mcneel.com/developer/rhinocommon
243 stars 93 forks source link

Curve.Split Method (Brep, Double) #23

Open lionpeloux opened 13 years ago

lionpeloux commented 13 years ago

It seems this method is throwing an error if the curve and brep does not intersect, while it should return an empty Curve[] object. Am I right ?

At the moment I get round of this by calling first the" Intersection.CurveBrep" method and test if there are intersection points ... but it's doing the job twice.

Thanks, Lionel

sbaer commented 13 years ago

Is there any information provided in the error that is being thrown? This function should already be returning an empty array in the non-intersection case.