Created
July 30, 2021 05:04
-
-
Save chuongmep/54f102d46622a1c20af9f0958c8599f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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