# closest_point_in_cloud

compas.geometry.closest_point_in_cloud(point, cloud)[source]

Calculates the closest point in a pointcloud.

Parameters
Returns

• float – The distance to the closest point.

• [float, float, float] – XYZ coordinates of the closest point.

• int – The index of the closest point in the original list.

Notes

Check kdTree class for an optimized implementation.

Examples

>>>