Hi everyone,
I’m trying to create a sine-wave–based perforation pattern in Grasshopper where the sine wave flips every two layers, creating an alternating woven/perforated effect suitable for 3D printing.
I was able to get this working successfully on a cylinder by dividing the height into layers and alternating the sine phase every two layers. However, when I attempt to apply the same logic to a Brep, the definition becomes very slow to load and ultimately fails to work.
My goal is to develop a parametric system in which a Brep is subdivided into curves, and those curves are further divided into points where sine wave deformations are applied. The resulting pattern alternates in two-layer increments. The sine wave maintains one orientation for two consecutive layers, then flips for the next two layers, repeating this sequence throughout the height of the Brep. This pattern did work for V7 but the geometry at the seams were a bit off creating an error when 3D Printing. Shown in the photo. I also saw that is a double wall print and want a single layer 0.8 offset instead of a 1.6.
In For the Brep version , I created the Brep that I want to attempt to apply the same pattern above, but I keep on having the waves face a certain direction and the 2 layers flip 2 layers pattern is not applying correctly. I have been struggling on this for awhile, and wondering why I keep getting these incorrect outcomes.
I’ll attach the scripts for both the cylinder one as well as the Brep one I had trouble with.
Thank you!
Mesh with Brep.gh (47.4 KB)
Cylinder Mesh.gh (14.1 KB)