Commit 793b39b2 authored by Mike Kremer's avatar Mike Kremer

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
parent ec49a65b
......@@ -78,7 +78,8 @@ enum StatusBits {
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 ///<
NONMANIFOLD = 128, ///< Item is isolated and thus non-manifold
UNUSED = 256 ///< Unused
};
......@@ -138,6 +139,12 @@ public:
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
unsigned int bits() const { return status_; }
/// set whole status at once
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment