C# equivalent offset as the loose offset component

I have a close polyline I want to offset. When I use the Curve.Offset it adds additional vertices randomly which are not really needed.

When Using GH Components, the Offset Component is behaving similarly. The Loose Offset one gives the expected results. Is there any way to replicate this from C#?

Thanks in advance.

Cheers

Hi @rjmarquez,

There are 3 versions of Curve.Offset. Try using the one with the “loose” parameter.

— Dale