We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01549cd commit 8712843Copy full SHA for 8712843
roboreg/io/meshes.py
@@ -31,7 +31,7 @@ def load_mesh(path: Union[Path, str]) -> Mesh:
31
raise FileNotFoundError(f"Mesh file {path} does not exist.")
32
m = trimesh.load(path)
33
if isinstance(m, trimesh.Scene):
34
- m = m.dump(concatenate=True)
+ m = m.to_geometry()
35
vertices, faces = m.vertices, m.faces
36
if vertices.size == 0 or faces.size == 0:
37
raise ValueError(f"Mesh is empty: {path.name}")
0 commit comments