SortPoints



Your Ad Here

Sorts an array of 3D points.

Syntax

Rhino.SortPoints (arrPoints [, blnAscending])

Parameters

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.

Returns

Array

An array of sorted 3D points  if successful.

Null

If not successful, or on error.

Example

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

Also See

SortStrings

SortNumbers

Return to Rhino Index


Your Ad Here