diff --git a/RemesherPlugin.cc b/RemesherPlugin.cc index f415049de092ed7eb9d542aab907c2c33ca6e4f4..1ff02499b349e6978f24dd8137164e79c7c1de7b 100644 --- a/RemesherPlugin.cc +++ b/RemesherPlugin.cc @@ -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);