Grasshopper offset bug?

Hi,

I just found a strange behavior when offsetting a polyline curve in Grasshopper. The offset result becomes wrong when the offset distance passes a certain point (see screenshots). However this issue does not exist when offsetting using Rhino command. Any clue why this is happening?


offset_bug.gh (4.0 KB)

Thanks,
Yao

Hi -

This seems fine in Rhino 8:
image

-wim

2 Likes

Hi Wim,

Thanks for the prompt response!

Yes, this works in Rhino 8. The error I had was in R7. I also tried in R6 and it wouldn’t even give me a result (see screenshot).

When I bake it to Rhino and offset it there everything is fine. It seems that the Curve.Offset() method in RhinoCommon API of Rhino 7 has the same issue. Just wondering if there are any workarounds to this problem in R7. And I am also curious why offset in Rhino works fine. Thank you!

Yao

Welcome to the club.
The answer in R7 is Clipper !

1 Like

Thank you, Laurent! This is awesome!