closest_point_in_cloud
- compas.geometry.closest_point_in_cloud(point, cloud)[source]
Calculates the closest point in a pointcloud.
- Parameters
point (tuple) – XYZ coordinates of the base point.
cloud (sequence) – A sequence locations in three-dimensional space.
- Returns
tuple – The distance to the closest point. XYZ coordinates of the closest point. The index of the closest point in the original list.
Notes
Check kdTree class for an optimized implementation (MR).
Examples
>>>