46 inline bool isOrphan()
const {
return _orphan; }
73 return (_numNotices == 0 && _numWarnings == 0 && _numErrors == 0 && _numFatals == 0);
112 std::string _message;
127 bool _badNormalLength;
133 bool _neighborhoodNotSet;
This class provides diagnostic information on a WEMNode.
int numWarnings() const
Returns the number of warnings.
~WEMNodeDiagnosis()
Standard destructor.
const WEMNode * getNode() const
Returns the node.
WEMNodeDiagnosis(bool hasEdges)
Standard constructor.
std::string message
Stuff used by SoWEMDiagnosis.
void checkIntegrity(WEMNode *node)
Checks integrity of the given node.
bool isNeighborhoodNotSet() const
Returns whether 'Neighborhood not set' errors were found.
bool isOk() const
Returns whether the node is ok.
bool isRedundant() const
Returns whether 'Redundant' errors were found.
bool isFlatRegion() const
Returns whether 'Flat region' errors were found.
bool selected
Is the node selected?
int numFatals() const
Returns the number of fatals.
int getSeverity() const
Returns the severity of errors.
bool isDeadEnd() const
Returns whether 'Dead end' errors were found.
bool hasValence3() const
Returns whether 'Node valence 3 with 3 triangles' errors were found.
bool isBoundary() const
Returns whether 'Boundary' errors were found.
bool hasNonConnected() const
Returns whether 'Non connected' errors were found.
bool hasDoubleEntry() const
Returns whether 'Double entry' errors were found.
bool isOrphan() const
Returns whether 'Orphan' errors were found.
int numNotices() const
Returns the number of notices.
bool isCollinear() const
Returns whether 'Collinear' errors were found.
std::string getErrorMessage() const
Returns the error message.
WEMNode * getNode()
Returns the node.
bool hasBadNormalLength() const
Returns whether 'Bad normal length' errors were found.
int numErrors() const
Returns the number of errors.
Defines the mesh component: node.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
const int NODE_SEVERITY_FATAL
Error status: a serious error.
const int NODE_SEVERITY_WARNING
Error status: a warning.
const int NODE_SEVERITY_ALLISWELL
Error status: no error at all.
const int NODE_SEVERITY_ERROR
Error status: an error.
const int NODE_SEVERITY_NOTICE
Error status: just a notice.