From 8165152573869115f7e801234726465bdf61356d Mon Sep 17 00:00:00 2001 From: malomo Date: Tue, 11 Dec 2012 12:15:16 +0000 Subject: [PATCH] added UpdateFlags::EdgeSet function --- vcg/complex/algorithms/update/flag.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vcg/complex/algorithms/update/flag.h b/vcg/complex/algorithms/update/flag.h index 44e4bd01..77adbcef 100644 --- a/vcg/complex/algorithms/update/flag.h +++ b/vcg/complex/algorithms/update/flag.h @@ -100,6 +100,13 @@ public: if(!(*vi).IsD()) (*vi).Flags() |= FlagMask ; } + static void EdgeSet(MeshType &m, unsigned int FlagMask) + { + tri::RequirePerEdgeFlags(m); + for(EdgeIterator ei=m.edge.begin(); ei!=m.edge.end(); ++ei) + if(!(*ei).IsD()) (*ei).Flags() |= FlagMask ; + } + static void FaceSet(MeshType &m, unsigned int FlagMask) { tri::RequirePerFaceFlags(m);