unibas-gravis / scalismo-faces

Scalable Image Analysis and Shape Modelling: Module to work with 2d images, with a focus on face images
Apache License 2.0
118 stars 27 forks source link

Fixes #112 - Calculate vertex normals if not available in the file #113

Closed Andreas-Forster closed 6 years ago

Andreas-Forster commented 6 years ago

This pull request tries to read the vertex normals from the file. If they are not present, they are calculated from the already available triangle mesh.

Note: This method will fail if the mesh is not compact, i.e. if there are vertices which are not part of a triangle. However, this would need to be addressed in the vertex normal calculation and not the reader.

BernhardEgger commented 6 years ago

Thanks for fixing that!