M_Rhino_Geometry_PointCloud_ClosestPoint - mcneel/rhinocommon-api-docs GitHub Wiki

PointCloud.ClosestPoint Method

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

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public int ClosestPoint(
	Point3d testPoint
)

VB

Public Function ClosestPoint ( 
	testPoint As Point3d
) As Integer

Parameters

 

testPoint
Type: Rhino.Geometry.Point3d
.

Return Value

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

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

PointCloud Class
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️