Commit bf1b500b authored by Jan Möbius's avatar Jan Möbius

Fixed boundary errors in remesher (also cppcheck warnings)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18552 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fb1f93fc
......@@ -187,7 +187,7 @@ void RemesherPlugin::computeInitValues() {
TriMesh::FaceHandle fh2 = mesh->face_handle(mesh->opposite_halfedge_handle(he));
// Boundary halfedge?
if ( !fh2.is_valid() || !fh2.is_valid() )
if ( !fh1.is_valid() || !fh2.is_valid() )
continue;
TriMesh::Normal n1 = mesh->normal(fh1);
......@@ -221,7 +221,7 @@ void RemesherPlugin::computeInitValues() {
PolyMesh::FaceHandle fh2 = mesh->face_handle(mesh->opposite_halfedge_handle(he));
// Boundary halfedge?
if ( !fh2.is_valid() || !fh2.is_valid() )
if ( !fh1.is_valid() || !fh2.is_valid() )
continue;
PolyMesh::Normal n1 = mesh->normal(fh1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment