Loft question

Hey there, first time asking a question myself.

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 :slight_smile:

I’ve added a script with the isolated section. Thanks in advance for taking the time.
Question-grasshopper.gh (11.8 KB)

Hi Martijn,

I don´t know, it´s working for me, but I just tried to re-calculate 10 times.

Regards,

Pavel

@Pavel2 I wonder however how I can prevent re-calculating 10 times.
And more importantly, why it’s happening.

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.

1 Like

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.


RemoveShortSegments.gh (13.2 KB)

2 Likes

Hi Martijn,

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.

Regards,

Pavel

Thanks all for your replies.

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 :bangbang:


loft_2024_Jun24a.gh (8.4 KB)

2 Likes