Lattice grid data structure

I have created a single lattice structure that I’m now trying to replicate in a box array type fashion.
I would like to have it work with multiple plane inputs and have it replicate on those locations.
my solution only works half. It does replicate the lattice on the correct location. but all the connections get jumbled when using more than one lattice.

I know it’s a matter of keeping the data structure correct but after hours of entwining, weaving and grafting my brains out I’m simply lost. I thought I finally started to understand the data structure of grasshopper…seems I still have some work. Any help and explanation is much appreciated.

single lattice

Problem when inputting more than one plane. this is the worst one. I can get it better when I try fiddling with the data structure using entwine or weave or a combination thereof but I can’t get it 100%

the file
lattice.gh (11.8 KB)

I think you can find an easy way to achieve it with IntraLattice


CustomCellWithIntraLattice.gh (12.0 KB)

1 Like

Damn, the way you created the cell was A LOT more elegant than what I did.
I was aware of intralattice, but never used it. I’ll give it a go, thanks!

Out of curiosity, is there a straightforward way to structure the data to solve my initial problem if I wouldn’t use intralattice to (I will though)? I’d like to understand my mistake.

If a GH definition can run normally when inputting a single data, but cannot run normally when inputting multiple data, it is usually caused by incorrect data structure matching. Here is a video to introduce data structure, wish it will help to you.

1 Like

thanks!