Comparing X en Y coordinates from points

Hello,

I have points from the first floor and i want to compare (X and Y) them with the four points (X and Y) from each surface below those points. Eventually I want only one point from the surface of the ground floor. this point is directly under the point of the first floor.

Can anyone help me with that?

data for comparing points from first floor with the ground floor.gh (97.0 KB)

this, for each point in First floor, will find the closest point from all the ones present at the Ground floor:

data for comparing points from first floor with the ground floor_inno.gh (103.5 KB)

the ground points are flattened because data structure is weird and not matching AT ALL

if you want to avoid flattening those (which is a very logic request) then I guess you’ll need to post the earlier part of that definition, where those data is generated

Hello Inno,

It works but I also want the order for the points on the storeys the same for the ground floor. I added this to the script. Is this also possible?

data for comparing points from first floor with the ground floor_inno.gh (108.1 KB)

Can anyone help me please?

As I said the last time you posted this project, you’re not providing enough context. As @inno says, the data structure is weird, so it’s probably much easier to pull this data out earlier in the script. Likewise, if we knew what the next step is, we might be able to help you get there in a better way. Why do you need these vertices? What will you do with them?

My hunch is that these simple shapes are being generated in an over-complicated way, and there has been some Simplification or Flattening applied, thus making a mess of the trees. But because you’re only showing us the effect, we can’t diagnose the cause.

Can you please share the complete file? I think you’d get much better advice!

I guess I can make a demo. Thanks for the advise! But unfortunaly I can’t share the script, because it is classified. I will take a look what I can share :slight_smile: