multidim.PointCloud.cover_ball¶
-
PointCloud.
cover_ball
(point_index=None)[source]¶ Find a ball that covers the entire PointCloud.
Parameters: - point_index : int
If point_index is given, we use that point as the center. If point_index is None (default), then we compute the point neareast the center-of-mass, which requires an extra
numpy.mean()
andscipy.spatial.distance.cdist()
call.
Returns: - ball : dict with keys ‘index’ (index of designated center point),
- ‘point’ (coordinates of designated center point), and ‘radius’ (radius
- of ball)