Use the Open3D wrapper of qhull
This commit is contained in:
parent
4a884fdc11
commit
0cafc20ead
@ -199,7 +199,9 @@ class GraspController:
|
|||||||
|
|
||||||
|
|
||||||
def compute_convex_hull(cloud):
|
def compute_convex_hull(cloud):
|
||||||
return trimesh.points.PointCloud(np.asarray(cloud.points)).convex_hull
|
hull, _ = cloud.compute_convex_hull()
|
||||||
|
triangles, vertices = np.asarray(hull.triangles), np.asarray(hull.vertices)
|
||||||
|
return trimesh.base.Trimesh(vertices, triangles)
|
||||||
|
|
||||||
|
|
||||||
class ViewHalfSphere:
|
class ViewHalfSphere:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user