I'm trying to load a mesh from an .obj file (from ShapeNet dataset) using Trimesh, and then use the repair.fix_winding(mesh)
function.
But when I load the mesh, via
trimesh.load('/path/to/file.obj')
or trimesh.load_mesh('/path/to/file.obj')
,
the object class returned is Scene, which is incompatible with repair.fix_winding(mesh)
, only Trimesh object are accepted.
How can I force it to load and return a Trimesh object or parse the Scene object to Trimesh object? Or any other way to fix winding of the triangles?
Using:
Python 3.6.5
Trimesh 3.0.14
MacOS 10.14.5