Skip to content
Snippets Groups Projects

Mesh for segmentation

4 files
+ 49
7
Compare changes
  • Side-by-side
  • Inline

Files

+ 10
3
@@ -866,11 +866,18 @@ def load_mesh(filename):
"""
Load a mesh from an .obj file using trimesh.
Parameters:
- filename: The path to the .obj file.
Args:
filename: The path to the .obj file.
Returns:
- mesh: A trimesh object containing the mesh data (vertices and faces).
mesh: A trimesh object containing the mesh data (vertices and faces).
Example:
```python
import qim3d
mesh = qim3d.io.load_mesh("path/to/mesh.obj")
```
"""
mesh = trimesh.load(filename)
return mesh
Loading