cnr-isti-vclab / meshlab

The open source mesh processing system
http://www.meshlab.net
GNU General Public License v3.0
4.77k stars 825 forks source link

Cannot load the normals in obj files. #1080

Open tianhaoxie opened 3 years ago

tianhaoxie commented 3 years ago

Macos, 2021.05 and 2021.07. When loading a point cloud with normals in .obj file, meshlab cannot load the normals. And I also tried on win64, 2021.05, it didn't work.

alemuntoni commented 3 years ago

Are they vertex or face normals? Could you please share an example file that could help us reproduce the issue?

tianhaoxie commented 3 years ago

armadillo_pc.obj.zip they are vn, and I tried to compute normals of vertices by meshlab and save. When I loaded again, it also didn't have normals.

alemuntoni commented 3 years ago

Thanks. I see that meshlab never supported load of vertex normals from obj files... Marking as feature request

csparker247 commented 3 years ago

I'm fairly certain that OBJs don't support point cloud normals. Normals are assigned to a specific vertex using either the face f or freeform surface surf commands [ref]. If there is a standard way to do this in an OBJ file, though, I would certainly like to know about it.

The easiest alternative is to use PLY.

tianhaoxie commented 3 years ago

Thanks for your reply😁