Lofting Not Working in Grasshopper

Hello everyone. Please bear with me. I drew some curves manually in Rhino, subdivided them in Grasshopper, and then wrote a script to randomly move the points. The goal is to loft the two close curves. When I loft directly using the Rhino command, it works beautifully, like the image on the right, but in GH it’s all messed up (left). I even took care to close the curves first in GH, but it is still not working. Any idea please?

project 2_cycloid deform.gh (15.6 KB)

Please internalise the input data

Without being able to see the data, it looks like your curves are not all oriented in the same direction, this is why there is a twist at the top and bottom. It also looks like the curves may be lofting in the wrong order, or wrong sets.

Apologies for that, and thank you for trying to help. Here is the updated file where I internalized data on all curve components. I also uploaded the Rhino file.

project 2_final.3dm (231.8 KB)

project 2_cycloid deform.gh (22.7 KB)

Your loft in Rhino shows a valid result but I think it is not the best you could do. Look at how twisted it is.

Rebuilding the curve helps:

Your Grasshopper loft is nonsense because your two profiles are not joined and the loft tries to create a loft between the segments.

It is debatable whether it makes sense to loft the entire object. I would orient the curves so they sit symmetrically on the origin and just loft one half of the curved face. Ok, I see the front and back are different…

As a quick workaround and to avoid messing too much with your definition I lofted the segments individually with the rebuild option. If you really want to loft two closed curves, you need to sort the segments before joining them.

project 2_cycloid deform loft.gh (31.0 KB)

project 2_final_final_final_final_loft.3dm (356.8 KB)

Hello, the solution suggested by “Martin Siegrist” is correct; however, I tested this one as well.

This is not aligned nicely.

Find a finale. :laughing: