Sorts an array of 3-D points.
rhinoscriptsyntax.SortPoints (points, ascending=True, order=0)
rhinoscript.utility.SortPoints (points, ascending=True, order=0)
points |
Required. Array. An array of 3-D points. |
||||||||||||||
ascending |
Optional. Boolean. The sorting mode, either ascending or descending. If omitted, the points are sorted ascending (True). |
||||||||||||||
order |
Optional. Number. The component sort order, where:
|
List |
A list of sorted 3-D points if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
points = rs.GetPoints()
if points:
points = rs.SortPoints(points)
for p in points: print p
SortStrings
SortNumbers