Skip to content

Commit

Permalink
Use new trimesh API
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Jul 27, 2023
1 parent 7ab3e53 commit 6bdbe76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytransform3d/mesh_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ def load_mesh(filename, convex_hull=False, return_as_open3d_mesh=False):
done = True

if isinstance(geometry, trimesh.Scene):
geometry = trimesh.util.concatenate(
list(geometry.geometry.values()))
geometry = geometry.dump().sum()
if convex_hull:
geometry = geometry.convex_hull

Expand Down

0 comments on commit 6bdbe76

Please sign in to comment.