This is the best way to create a waffle structure in my opinion. It fixes a flaw in the original method for creating slots in this thread (which needs a better title!).
The fix for that problem is in the white group of this version, which is an extensive rewrite of the original. It creates slots in 2D before extruding the section curves, so no more SDiff.
waffle structure_2024Mar29b.gh (228.8 KB)
Geometry is internalized, no need for Rhino file.
Here is how it works:
- BBX (Brep | Brep intersection) is used to create vertical lines.
- The lines are flipped so they all start at their bottoms and end at their tops.
- They are split in the middle.
- The bottom halves are extended down and top halves are extended up (40 units).
- Bottom halves are extruded in X and top halves are extruded in Y by the slot width, using the same vectors used later for thickness. These extrusions are then centered by moving them “backwards” with the same vectors and the expressiojn:
-x/2
- Finally, RDiff is used to cut the 2D slots by subtracting extrusions from section curves.
Careful examination of the results shows that slots end in the middle, as they should.
By the way, it’s too bad that a duplicate thread was created for this: