While working I stumbled upon curves that failed to loft. They are part of a bigger group, but only this path (N=3) failed to loft, the others worked fine. In my automated test this only occurred once out of 50 runs, and specifically only for these 3 curves.
What I fail to understand is, why does it fail to loft? I’m wondering if someone could solve this mystery for me
I’ve added a script with the isolated section. Thanks in advance for taking the time. Question-grasshopper.gh (11.8 KB)
On my side, it didn’t work either. I fixed it by rebuilding the curves, also I saw that the control points had duplicated points. That is my guess for the error.
The issue doesn’t happen in Rhino 8. The problem with your curves is that they have short segments. You can fix this by using the Remove Short Segments component from Nautilus. Flipping the curve also seems to solve the problem.
for me the script worked well from the beginning, and even after 10 re-calculations no error occured. If error persists, Felipe´s tip (curve reconstruction) should help.
I guess @Felipe_Penagos that rebuilding the curves prior to the lofting operation seems to be most stable. Did a validation test where it generated 50 curves and tested the function and it worked well in each case.
@Mahdiyar Unfortunately I can’t yet switch to Rhino8, will try the nautilus shortsegment. Flipping the curves isn’t ideal as then the loft is in another direction vs. the others.
By far the easiest “fix” is using the Loft Opt ‘Rbd’ (Rebuild) feature. I also suggest using ‘Normal’ instead of ‘Loose’ loft to follow the curves better. No plugin