Sweep1 Rhino and Grasshopper difference

Hi!
I’m having an issue with sweeping my cross section profiles along a curve. When I create the sweep in Rhino, everything works perfectly. However, when I try to achieve the same result in Grasshopper, the output is different and not what I expect. I can’t figure out why the sweep isn’t generating correctly in Grasshopper.
I’m attaching a video showing the problem and GH file with cross sections and rail.

sweep_problem_2.gh (10.7 KB)

The issue is caused because your polyline is seen as 3 curves, giving 3 sweeps
Most easy was to turn you polyline into 1 interpolated curve

PS: And grafting the sections, will create a sweep for every set of sections.



sweep_problem_2.gh (10.7 KB)

PS: You can also use rebuild and play with the degree

@Eef_Weenink Thank you very much!