From 69004410e34154d61d13251b6c8370caa1fea65d Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 4 Jun 2009 08:15:59 +0000 Subject: [PATCH] Corrected a wrong function to clear border face flag (and added BORDER012 to the enums of the flags) --- vcg/complex/trimesh/update/flag.h | 2 +- vcg/simplex/face/base.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/update/flag.h b/vcg/complex/trimesh/update/flag.h index 484a80f1..1493ed19 100644 --- a/vcg/complex/trimesh/update/flag.h +++ b/vcg/complex/trimesh/update/flag.h @@ -166,7 +166,7 @@ static void FaceSet(MeshType &m, unsigned int FlagMask) static void VertexClearV(MeshType &m) { VertexClear(m,VertexType::VISITED);} static void VertexClearB(MeshType &m) { VertexClear(m,VertexType::BORDER);} static void FaceClearV(MeshType &m) { FaceClear(m,FaceType::VISITED);} -static void FaceClearB(MeshType &m) { FaceClear(m,FaceType::BORDER);} +static void FaceClearB(MeshType &m) { FaceClear(m,FaceType::BORDER012);} static void VertexSetV(MeshType &m) { VertexSet(m,VertexType::VISITED);} static void VertexSetB(MeshType &m) { VertexSet(m,VertexType::BORDER);} diff --git a/vcg/simplex/face/base.h b/vcg/simplex/face/base.h index 1c12f563..240ed5c0 100644 --- a/vcg/simplex/face/base.h +++ b/vcg/simplex/face/base.h @@ -182,6 +182,7 @@ public: BORDER0 = 0x00000040, BORDER1 = 0x00000080, BORDER2 = 0x00000100, + BORDER012 = BORDER0 | BORDER1 | BORDER2 , // Face Orientation Flags, used efficiently compute point face distance NORMX = 0x00000200, NORMY = 0x00000400,