PointCloud.ClosestPoint Method
Click or drag to resize

PointCloudClosestPoint Method

Returns index of the closest point in the point cloud to a given test point.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public int ClosestPoint(
	Point3d testPoint


Type: Rhino.GeometryPoint3d

Return Value

Type: Int32
Index of point in the point cloud on success. -1 on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.7
See Also