I’m currently working on my graduation project using Rhino and Grasshopper and I’m not very experienced in those programs.
I made a brick pattern in archicad and I would like to recreate that in Rhino using Grasshopper. I would like it so that I can control the gaps between the bricks.
I added the script I currently have but I just cant seem to align the green bricks over the gap between the white bricks. (like in the screenshot of the pattern I want)
The brick measurements are: 178x83x48mm
Can anyone help me with this?
(Sorry if my script is very amateur…)
When you start a thread, ask yourself: “What would I need to answer this question without creating geometry and a script from scratch?”. Did you read this?
3. Attach minimal versions of all the relevant files
Your geometry is not internalized, so your script is useless:
the longitudinal bricks can follow the slant of the wall, it doesn’t matter if it doesn’t align perfectly over the transversal bricks. It just needs to be in the center of the gap between the transversal bricks. (I hope its clear and an answer to your question )
I think the best is that the bricks are supposed to follow the curvature.
Looks very nice but the projection method will fail (for a couple of reasons) with different curve inputs. Best to assume an arbitrary surface as the base. This is not a solution, only a demo. All code by @magicteddy with my white group added to present a reasonable case that fails.
P.S. With the exception of a few misplaced bricks and gaps in the brick pattern, your code works surprisingly well with my ‘Arc Crvs’ if you just use the lofted BaseSrf as input to Contour.
Because Loft is producing an open brep instead of a surface? Impossible to tell for sure when you haven’t posted a file, as suggested by these forum guidelines:
3. Attach minimal versions of all the relevant files