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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user