Geometry rotates around the axis of a curve using sweep

Hi,

I’m trying to sweep a tunnel section along a curve but the geometry rotates around the axis perpendicular to the curve.

I want the geometry locked in the z-axis but rotating around the x/y plane.

Is there a way to achieve this in grasshopper, or have I made a mistake in the script?

The first image is aligned correctly in the beginning of the curve but in the end it has rotated ~ 270 degrees.

tunnelsection.3dm (896.3 KB)
tunnelsection.gh (12.2 KB)

image
image


tunnelsection_re.gh (28.7 KB)

4 Likes

This is great and runs much smoother. Have to take some time to understand what you did but I think I get the idea that you create planes along the curve and loft a surface along those planes.

Thank you so much!