Sorts an array of 3-D points.
Rhino.SortPoints (arrPoints [, blnAscending [, blnOrder]])
arrPoints |
Required. Array. An array of 3-D points. |
||||||||||||||
blnAscending |
Optional. Boolean. The sorting mode, either ascending or descending. If omitted, the points are sorted ascending (True). |
||||||||||||||
blnOrder |
Optional. Number. The component sort order, where:
|
Array |
An array of sorted 3-D 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