Code: Select all
from scipy.spatial import ConvexHull
...
hull = ConvexHull(pts) # pts is a xyz-coordinate list of all points in a point clout
hull_vertices = pts[hull.vertices] # coordinates of the key points in the convexhull
Code: Select all
from scipy.spatial import ConvexHull
...
hull = ConvexHull(pts) # pts is a xyz-coordinate list of all points in a point clout
hull_vertices = pts[hull.vertices] # coordinates of the key points in the convexhull