Data matching rhino data into correct pairs in grasshopper

Hello, hope you are having a great day!

I am having some issues with data matching and was wondering if someone could help me out

I have two sets of data:
1 set of horizontal circles
1 set of vertical curves. The vertical curves are in the centre of the circles

Essentially the script is taking a geometry, and scaling the geometry in 3 dimensions
Y: Following the length of the vertical curve
XZ: Following the diameter of the circle (matching against a bounding box on the geometry and taking the bottom surface of the box - middle point of one edge to the opposite as diameter - in order to scale)

The issue with this data is that I can’t seem to make it pair the circle and vertical curve correctly.
In the image below you can se how the geometry is not scaling correctly in the XY, so it seems like the vertical curve and the circles are not matched correctly.
The original data had a correct match, and once I removed some pairs, the data seemed to get a bit shuffled and I am unsure how to rearrange it.

Does anyone have a suggestion of how I can make this work?
(The geometry is quite far away from 0,0,0 in the GH file, easiest to bake an element and ZEA, sorry!)

Data matching issues - reduced and internalized GH (130.2 KB)


Can’t really see what you want to do without the missing bits but the first thing I would do is Entwine the two lists of geometry and don’t lose that 1-to-1 connection between them.


1 Like

Ah, ok

I tried entwine ealier, but the issue is that the items have gotten shuffled. So circle 1 and Vertical 1 are in different locations. So I am trying to figure out how I can order them so that the vertical and circle data location corresponds to rhino location

Thanks for the response! :slight_smile:

Something like this is what you want?

Placing trees based on lidar scan - reduced testing (245.1 KB)

1 Like

Oh! That’s a problem, here’s a fix:

Placing trees based on lidar (138.9 KB)

WARNING!!! Working so far from the origin is well known to cause problems.

1 Like

That is exactly what I was trying to do, I’ll have to look into it so I understand how it works! :slight_smile:

Awesome, thank you for the help! :slight_smile:

Yeah, I need to move the model a bit, forgot to do it before internalizing the data, it’s just the data coming from a very large lidar scan so it builds out from base location :slight_smile: