73 return (_numNotices == 0 && _numWarnings == 0 && _numErrors == 0 && _numFatals == 0);
112 std::string _message;
115 bool _badNormalLength;
117 bool _neighborhoodNotSet;
129 bool _normalInverted;
This class provides diagnostic information on a WEMFace.
bool isConcave() const
Returns whether 'Concave' errors were found.
int getSeverity() const
Returns the severity of errors.
int numErrors() const
Returns the number of errors.
std::string getErrorMessage() const
Returns the error message.
bool selected
Is the face selected?
WEMFaceDiagnosis(bool hasEdges)
Standard constructor.
bool hasNULLNode() const
Returns whether 'NULL node' errors were found.
const WEMFace * getFace() const
Returns the face.
~WEMFaceDiagnosis()
Standard destructor.
bool hasNonConnected() const
Returns whether 'Non connected' errors were found.
bool isOk() const
Returns whether the face is ok.
WEMFace * getFace()
Returns the face.
int numNotices() const
Returns the number of notices.
bool hasNULLEdge() const
Returns whether 'NULL edge' errors were found.
bool isInvalid() const
Returns whether 'Invalid' error were found.
bool isNormalInverted() const
Returns whether 'Normal inverted' errors were found.
int numWarnings() const
Returns the number of warnings.
bool hasBadNormalLength() const
Returns whether 'Bad normal length' errors were found.
void checkIntegrity(WEMFace *face)
Checks the integrity of the given face.
bool hasEdgeOffset() const
Returns whether 'Edge offset' errors were found.
bool hasZeroArea() const
Returns whether 'Zero area' errors were found.
std::string message
Stuff used by SoWEMDiagnosis.
bool isNeighborhoodNotSet() const
Returns whether 'Neighborhood not set' errors were found.
bool hasDoubleEntry() const
Returns whether 'Double entry' errors were found.
int numFatals() const
Returns the number of fatals.
Defines the mesh component: face.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
const int FACE_SEVERITY_ERROR
Error status: an error.
const int FACE_SEVERITY_FATAL
Error status: a serious error.
const int FACE_SEVERITY_WARNING
Error status: a warning.
const int FACE_SEVERITY_ALLISWELL
Error status: no error at all.
const int FACE_SEVERITY_NOTICE
Error status: just a notice.