Expected Curve, got Array[Curve]

Hi,

I am using GHPython on Rhino 6. I just offset multiple curves at various distances using the Curve.Offset in RhinoCommon. I want to find the intersection points of those curves but have the error that I need Curve and not Array[Curve].

How do I go about converting it and/or avoiding this situation all together?

even if result were a singular curve the method call would still return an array
you can do a conditional statement and triage the situation
say if you are expecting a singular offset result and the array contains more than one, that means there is a kink or knot of sorts that makes the offset broken into segments

1 Like

Thanks for the heads up Will! That worked :slight_smile: