Sorts an array of 3D points.
Rhino.SortPoints (arrPoints [, blnAscending])
|
arrPoints |
Required. Array. An array of 3D points. |
|
blnAscending |
Optional. Boolean. The sorting mode, either ascending or descending. If omitted, the points are sorted ascending. |
|
Array |
An array of sorted 3D points if successful. |
|
Null |
If not successful, or on error. |
Dim arr, p
arr = Rhino.GetPoints(,,"First point", "Next point")
If IsArray(arr) Then
arr = Rhino.SortPoints(arr)
For Each p in arr
Rhino.Print Rhino.Pt2Str(p)
Next
End If