Removes duplicates from an array of numbers.
Rhino.CullDuplicateNumbers (arrNumbers [, dblTolerance])
arrNumbers |
Required. Array. An array of numbers. |
dblTolerance |
Optional. Number. The minimum distance between numbers. Numbers that fall within this tolerance will be discarded. If omitted, Rhino's internal zero tolerance is used. |
Array |
An array of numbers with duplicates removed if successful. |
Null |
If not successful or on error. |
Dim arr, n
arr = Array(1,1,2,2,3,3,4,4,5,5)
arr = Rhino.CullDuplicateNumbers(arr)
For Each n in arr
Rhino.Print n
Next