# Brick design

brick design.gh (12.9 KB)
brick design.3dm (444.8 KB)

Can not open.

2 Likes

brick design.rar (308.1 KB)
I attached everything I have done. also check this plz
brick design.gh (122.9 KB)

thank you for sending me your definitions but mine is different. can you help me with this?
brick design.rar (308.1 KB)

Iâ€™m done with bricks. It looks like yours are not following the curvature of your base surfaces. I would consider HFrames as the basis for each brick, so they are aligned with tangents at every point.

I didnâ€™t get your point. can you edit my file and send it to me plz.
brick design.gh (122.9 KB)

What part of this donâ€™t you understand?

I offered sincere advice about using HFrames for your bricks so they follow the tangents at each point of the contours (if you are using contours?).

No. I didnâ€™t look at either of the files you posted, only your image.

Hello
when asking question there must be some question and some explanations !!!
What do you expect ?
Bricks following the surface or all bricks with the same orientation ?
@Joseph_Oster answers with some links that seems relevant to the subject. Did you look at them ? Why are they not relevant for your problem ?

Many people could help you but you must be a bit more precise.

hi dear
orientation of bricks is ok an d I did it in a way that I want. but rows of bricks reach to curvature surface they meet each other which is my question. how can I correct the file in a way that the orientation of bricks donâ€™t change meanwhile the bricks donâ€™t touch each other and the spaces between them remain same as the correct rows of bricks which has been shown in picture.

brick design.gh (122.9 KB)

If that is true, why the red X in your image? Your explanation doesnâ€™t make sense to me, other than â€śI did it in a way that I wantâ€ť which doesnâ€™t seem to leave any room for suggestions.

the red cross means the orientation is right while the spaces not so the bricks in this area hit each other.
in the green area both orientation and space are right.

Ah, I see that now. Had to click on the image to see the overlap.

So the angle of the wall is effectively shortening the X and Y distances, causing the bricks to overlap.

yeah exactly. I donâ€™t know how to fix this. can you check my script?

it seems you are looking for a function similar to this one ^ , but to work with squares instead of circlesâ€¦

maybe. I donâ€™t know how to use it and fix my script. can you look at my script?

I donâ€™t think there is a simple fix for this and no, I wonâ€™t look at your script. You might want to consider this one though:

bricks_2023Sep19a.gh (13.0 KB)

1 Like

I think @DanielPiker posted an example with colliding rectangles which should solve this problem but I cannot find it.

Iâ€™ve put up a script that iteratively place a square (rounded, if needed) on your curve, and check for next intersection, and go on.
It is probably easy to edit the code to make it work with a rectangleâ€¦