closest_point_in_cloud
- compas.geometry.closest_point_in_cloud(point, cloud)[source]
Calculates the closest point in a pointcloud.
- Parameters:
- point[float, float, float] |
compas.geometry.Point
XYZ coordinates of the base point.
- cloudsequence[[float, float, float] |
compas.geometry.Point
] A sequence locations in three-dimensional space.
- point[float, float, float] |
- 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
>>>