From c722cedeaa137ce7ff7cfecf0544cc14dc35c138 Mon Sep 17 00:00:00 2001 From: malomo Date: Wed, 10 Dec 2014 00:55:37 +0000 Subject: [PATCH] Fixed bug in VertexBorderFromFaceBorder function. --- vcg/complex/algorithms/update/flag.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) {