From 793b39b2c7eb0d50b35b6272fb7a1455fc5f9473 Mon Sep 17 00:00:00 2001 From: Mike Kremer Date: Thu, 1 Apr 2010 13:05:27 +0000 Subject: [PATCH] Added status flag for non-two-manifold configurations (for all entities) git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@312 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/Mesh/Status.hh | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/OpenMesh/Core/Mesh/Status.hh b/src/OpenMesh/Core/Mesh/Status.hh index 04d4e031..e3994633 100644 --- a/src/OpenMesh/Core/Mesh/Status.hh +++ b/src/OpenMesh/Core/Mesh/Status.hh @@ -71,14 +71,15 @@ namespace Attributes { */ enum StatusBits { - DELETED = 1, ///< Item has been deleted - LOCKED = 2, ///< Item is locked. - SELECTED = 4, ///< Item is selected. - HIDDEN = 8, ///< Item is hidden. - FEATURE = 16, ///< Item is a feature or belongs to a feature. - TAGGED = 32, ///< Item is tagged. - TAGGED2 = 64, ///< Alternate bit for tagging an item. - UNUSED = 128 ///< + DELETED = 1, ///< Item has been deleted + LOCKED = 2, ///< Item is locked. + SELECTED = 4, ///< Item is selected. + HIDDEN = 8, ///< Item is hidden. + FEATURE = 16, ///< Item is a feature or belongs to a feature. + TAGGED = 32, ///< Item is tagged. + TAGGED2 = 64, ///< Alternate bit for tagging an item. + NONMANIFOLD = 128, ///< Item is isolated and thus non-manifold + UNUSED = 256 ///< Unused }; @@ -136,6 +137,12 @@ public: bool tagged2() const { return is_bit_set(TAGGED2); } /// set tagged void set_tagged2(bool _b) { change_bit(TAGGED2, _b); } + + + /// is non-manifold ? + bool nonmanifold() const { return is_bit_set(NONMANIFOLD); } + /// set non-manifold + void set_nonmanifold(bool _b) { change_bit(NONMANIFOLD, _b); } /// return whole status