Mushroom.gh (59.8 KB)
Mushroom.3dm (119.4 KB)
Hello! I was wondering if someone could help me figure out what’s wrong with this grasshopper script. The basic idea is creating a mushroom-like shape that starts in a circular border and ends in a sort of freeform curve, this is done through lofting or sweeping a bunch of section curves that I draw in grasshopper. This section curves need to have 2 consistent arcs, one at each end, and the top side of the flat mushroom has a certain minimum slope. I also need the border of the mushroom to follow as closely as possible the freeform curve drawn in rhino. This is guaranteed with the sweep 2 command but this also breaks very easily so now im just lofting like 200 section curves. Im also generating a series of panels in the shape of the section curves (but not equal in number to the ones im lofting) by getting the intersections of planes and the mushroom. This all works very smoothly until I set certain values in the variables im controlling. For example, at 200 section curves, start radius 80, end radius 105 and minimum slope 2, something weird happens at the end radius of the loft which causes the sections to break. Haven’t found an explanation but im sure one of you will know, I’d really appreciate the help!
Dear Samuel,
It took some time to study your file, but in the end there are some tips & tricks.
- Please do not hide wire displays, it is hard to see what you are doing there, I had to unhide them all to understand.
- The Loft worked just fine. It takes about 5 minutes to resolve, but no errors. Advice: Use as less curves as possible. Maybe in the end the final one before delivery can have the max, number you need.
- The sweep2 . I worked long on that one:
-
- Moved seams of rail curves to the first (section)curve.
-
- Flipped curves (rails + sections)
Conclusion: too complex input, to resolve nicely. Maybe there is a trick there, but too time consuming to find it.
Suggestion (how I would approach this problem:
A. The middle of you mushroom is a circular part. like an axle of a wheel.
In the XZ plane just draw the contour of the part. vertical line bottom line + arc. Revolte
That wil give you an open brep with at the top and bottom a nice circle.
B. Use what you did to draw the outer waved part. Only the vertical line + second arc. ( I did that with explode, + select two sections) + join
select points (or endpoints) > interpolate + sweep2 will quickly give you a curved surface. Because you select far less the resolving is fast also with larger numbers.
This gives a surface with also an upper + lower curve
Loft upper curves of axle + outer surface, same for lower curves.
Join brep 
MushroomEW.gh (52.9 KB)
When done, it looks like this:
MushroomEW2.gh (65.9 KB)
Thank you so much for taking the time to study and understand the file! I’ll be taking a look at your solution, sounds really good reading it!