Measure points in same list

Hi all, I am trying to measure the distance between points nested in the same list each group of points represent a chair in a room and I have two rooms so I am trying to measure the distance between each group of chairs in each room separately if I use Geometry. distance to, cross-product it won’t measure the distance between points in each the group but it

List.ShiftIndices node might help

Geometry.DistanceTo compares one input to another input, so you can’t just make it compare one list of inputs. You’ll have to compare it against both and then clean up your results. Use List Level @L1 for the first input. This will force every item to pair up with every item individually. Then you just need to clean up the extra outputs.

Edit: Something like this.

2 Likes

it worked! Thank you Nick for your help :smiley: