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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user