Different Grids Offset in Different Distances

Hi, I was wondering if there is a way to offset different grid segments in different distances? I am trying to create a grid layout that also includes cells that are subdivided into smaller cells. Although when it comes to offsetting them it looks weird. What I want to do is to offset only the sides of the subdivided cells that face at the inside of the subdivided cells and keep the position of the perimeter curves the same and maybe trim them later. Excuse me If I am not explaining this very well but I am attaching a jpeg that shows what I am trying to achieve.

Thank you in advance

grid subdivisions offset.gh (59.1 KB)

grid subdivision|690x263

Here’s an example reflecting what you show in your diagram:

grid-of-grids.gh (18.5 KB)

1 Like

Thank you very much for your response!!!

Trying to create a grid in every cell was something that I have not thought! Although when I am applying this in my script is not really working and neither when I am changing the number of the subdivision from 3 to 2. I might be doing something wrong or maybe it is because it uses a lot of planes and is getting a bit messed up when is applied in a different grid.

grid subdivisions offset.gh (63.9 KB)

I have also thought of a different logic which I am trying to apply now, using the closest corner point of each of the offsetted smaller cells to the centre of the bigger cell and then drawing a 2 point rectangle using the corner point of the bigger cell. Although I am struggling again as it requires a lot of data manipulation. I am attaching a diagram again.

Here you go:

2022-02-02 10-28-13.2022-02-02 10_29_52

grid-of-grids-2.gh (83.9 KB)

2 Likes

Lifesaver!

That works perfectly. Also, the notes help to understand your logic :). I will try to see how that will work as part of a bigger script where the grid is based on different parameters, but I think is the ideal solution.

Thank you so much for your time and effort! I really appreciate it.