Hi all,
I have a tree with branches full of point pairs resulting from curve-curve intersections - in theory at least there should be exactly two points on each branch. Now, I need to do stuff with the point in each pair that has the lowest Z value (then later the highest Z)... The problem is the intersections are not returned sorted by Z, sometimes the lower point is first in the list, sometimes last. So I need to sort those pairs of points by Z value.
I noticed the sort points component does not have any inputs for sort criteria... RhinoScript SortPoints allows you to sort by:
blnOrder
|
Optional. Number. The component sort order, where:
Value
|
Component Sort Order
|
0 (default)
|
X, Y, Z
|
1
|
X, Z, Y
|
2
|
Y, X, Z
|
3
|
Y, Z, X
|
4
|
Z, X, Y
|
5
|
Z, Y, X
|
|
Will we get something like this in GH? For now I think I can manage to analyze the Z for each and re-order the points, but a more comprehensive point sorting tool might be nice... no? Or did I miss something obvious? --Thx, --Mitch
Tags: