Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import clr
input = IN[0]
result = []
def sortbyZXY(point):
point.sort(key = lambda points: (point.Z, point.X, point.Y))
return points
for i in input:
result.append(sortbyZXY(i))
OUT = result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment