CullDuplicatePoints

Removes duplicates from an array of 3-D points.

Syntax

rhinoscriptsyntax.CullDuplicatePoints ( points, tolerance=-1 )

rhinoscript.utility.CullDuplicatePoints ( points, tolerance=-1 )

Parameters

points

Required.  List.  A list of 3-D points.

tolerance

Optional.  Number.  The minimum distance between points.  Points that fall within this tolerance will be discarded.  If omitted, Rhino's internal zero tolerance is used.

Returns

List

A list of Point3d with duplicates removed if successful.

None

If not successful or on error.

Example

import rhinoscriptsyntax as rs

points = rs.GetPoints(,,"First point", "Next point")

if points:

    points= rs.CullDuplicatePoints(points)

    for p in points: print p

Also See

CullDuplicateNumbers

CullDuplicateStrings