Skip to content

Commit 8712843

Browse files
committed
fix trimesh deprecation warning
1 parent 01549cd commit 8712843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roboreg/io/meshes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def load_mesh(path: Union[Path, str]) -> Mesh:
3131
raise FileNotFoundError(f"Mesh file {path} does not exist.")
3232
m = trimesh.load(path)
3333
if isinstance(m, trimesh.Scene):
34-
m = m.dump(concatenate=True)
34+
m = m.to_geometry()
3535
vertices, faces = m.vertices, m.faces
3636
if vertices.size == 0 or faces.size == 0:
3737
raise ValueError(f"Mesh is empty: {path.name}")

0 commit comments

Comments
 (0)