trimesh
trimesh copied to clipboard
OBJ group name
The software I'm using exports separate meshes in obj file as groups ('g' prefix lines). Trimesh seems to be able to parse that, but I need to be able to access the group names (following the 'g'). Does Trimesh support this? For reference, here's what the file looks like
g {group name}
v 1 2 3
...
usemtl {material}
f 1 2 3
...
g {group name 2}
...
...
I ran into this issue as well. trimesh.load can indeed read individual objects into a scene but as far as I can tell, the names of the objects are lost. However the objects can be accessed via the geometry attribute of the scene. I think preserving names would be a very useful feature to have.
@mikedh Can I ask for your thought? What might be a good way to solve this? I can try to do the work myself.
Any improvements on this topic?