CullDuplicateNumbers - PYTHON 不支持

Removes duplicates from an array of numbers.

语法

Rhino.CullDuplicateNumbers (arrNumbers [, dblTolerance])

参数

arrNumbers

Required.Array.An array of numbers.

dblTolerance

可选参数。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

同见

CullDuplicatePoints

CullDuplicateStrings