mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3k stars 581 forks source link

Weird behaviour with `trimesh.load` #1406

Open Sentient07 opened 3 years ago

Sentient07 commented 3 years ago

Hello. I observe a strange behaviour with trimesh.load it somehow seems to shrink the vertices. what could be the reason?

Edit : The mesh referred herewith can be downloaded from here image

mikedh commented 3 years ago

Hey, OBJ files can have a potentially complicated implicit "split" vertex structure, and you generally can't rely on them to load identically. I might suggest switching to GLB or PLY if possible. You can also try playing with the loader args to try to replicate the behavior of pymesh.

Sentient07 commented 3 years ago

Hello @mikedh Thank you for your very prompt response. I tried to manipulate the arguments of that function, yet the vertices count remain the same. I'm not sure I understood the implicit "split" vertex structure part of your message. Can you please elaborate? Thank you