Fixed bug in polymesh normal computation. Added more unittests for normal computation.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1316 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2015-07-25 19:28:39 +00:00
parent 305aa1b244
commit fc4089ff3b
2 changed files with 92 additions and 1 deletions

View File

@@ -110,7 +110,7 @@ calc_face_normal(FaceHandle _fh) const
Point p1 = this->point(*fv_it);
const Point p1i = p1; //save point of vertex 1
++fv_it;
// Safeguard for 2-gons
if (!(++fv_it).is_valid()) return Normal(0, 0, 0);