What's GUI Sweep1rail doing under the hood?

Hello,

I’m trying to implement Sweep1rail function with Rhinocommon API.
I use lists of points to create interpolated curves for Sweep1rail’s sections. When the curve is not closed, it works just fine. Both GUI version and code version produce the same shape.


However when the curve is closed, the two behaves differently.

I’ve seen that there’s some additional actions in GUI version and I want to know how can I recreate them in the Grasshopper code?

Thank you

Hi @Jbok_L,

Create your rail line curve using the two shape curve seam points.

– Dale