Curve.DuplicateSegments(self: Curve) returns empty array


#1

Hi,

I’m running into an issue where Curve.DuplicateSegments() returns an empty array
Is this expected? I expected single segment curve to return that single segment.
From the docs it’s not obvious an empty array can be returned:

http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_DuplicateSegments.htm

Thanks
-Willem


(Dale Fugier) #2

Hi @Willem,

The documentation could certainly be better. But the function “explodes” polylines, polycurves and G1 discontinuous NURBS curves. And, yes, it returns an empty array (false) on anything else.

– Dale