Brick stacking

I want to build a brick wall using hollow bricks. I have difficulties aligning the holes on top of each other. Can anyone please help me?


Brick Allingment.gh (31.6 KB)

Hi @eiman.graiz ,

You can see in this image you are dividing your curve overall length by your brick length giving you a value of ~6.8 but this doesn’t accurately reflect the dimensions you need to move your brick for the proper overlap.
Additionally, when you pass this value into the Offset Planes the component expects an Integer and therefore round this number to 7 which is also not the correct value.

Your math is good in the initial subtraction of center to center hole distance, we can apply that dimension to some array logic to get you where you need to be with the alignments.

Please take a look at the attached definition and see if this works for your purposes?
I didn’t fuss over optimizing it too much though it could be vastly simplified still.

But this should get you where you need to be in the mean time!

Model Space:

Graph Space:

20230926_Brick Allingment_Response_01a.gh (25.6 KB)

1 Like

Thank you!

1 Like

You’re welcome!