Create rectangle From Polyline error

Hello
CreateFromPolyline method in Rectangle3d struct fails to get a best fit rectangle in case of polyline with 5 points , in case of 6 or more, it works perfectly

CreateFromPolyline.gh (7.0 KB)


While we wait for a fix, one can MergeColinearSegments on the polyline first, which seems to work:


CreateFromPolyline.gh (6.2 KB)

1 Like

Hi Mohamed .

Thanks, I’ve put this on the list → RH-84302 RhinoCommon: CreateFromPolyline Failure Sample
-wim