diff --git a/vcg/complex/algorithms/update/flag.h b/vcg/complex/algorithms/update/flag.h index 3c6b15c1..65d209d2 100644 --- a/vcg/complex/algorithms/update/flag.h +++ b/vcg/complex/algorithms/update/flag.h @@ -339,7 +339,7 @@ public: // TRACE("found %i border (%i complex) on %i edges\n",nborder,ncomplex,ne); } - /// Compute the PerVertex Border flag deriving it from the border flag of faces + /// Compute the PerVertex Border flag deriving it from the face-face adjacency static void VertexBorderFromFaceAdj(MeshType &m) { RequirePerFaceFlags(m); @@ -365,6 +365,7 @@ public: { RequirePerFaceFlags(m); RequirePerVertexFlags(m); + VertexClearB(m); for(FaceIterator fi=m.face.begin();fi!=m.face.end();++fi) if(!(*fi).IsD()) {