Removes duplicates from an array of 3-D points.
rhinoscriptsyntax.CullDuplicatePoints ( points, tolerance=-1 )
rhinoscript.utility.CullDuplicatePoints ( points, tolerance=-1 )
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. |
List |
A list of Point3d with duplicates removed if successful. |
None |
If not successful or on error. |
import rhinoscriptsyntax as rs
points = rs.GetPoints(,,"First point", "Next point")
if points:
points= rs.CullDuplicatePoints(points)
for p in points: print p