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?
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)
Have a look at the Python scripts posted here:
This is a similar question to this one:
Hope you’ll find this useful.
3. Attach minimal versions of all the relevant files
Works perfectly thanks!!