Remapping Tree based on discreet values

Hello,
I need a way to organise a lot data based into individual branches using Z coordinates. Effectively I have a lot of curves all grouped spacial around set Z-values (ie, five curves at Z 20, three curves at Z 40, etc). They are currently flattened, but is there a way to test which Z-value they are at, and group like Z-values into specific branches?
Thanks :slight_smile:

Hi,

If your curves are indeed planar, testing the Z coordinate of a point on those curves should do the trick.

SortCurvesByZ.gh (9.1 KB)

1 Like

Have a look at the Python scripts posted here:

1 Like

This is a similar question to this one:

Hope you’ll find this useful.

2 Likes

3. Attach minimal versions of all the relevant files

1 Like

Works perfectly thanks!!