ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
- aResult = aRecognition.IsPlane(theTolerance, aPln);
+ if (aRecognition.GetStatus() == 0)
+ aResult = aRecognition.IsPlane(theTolerance, aPln);
}
catch (...) {
return false;
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
- aResult = aRecognition.IsSphere(theTolerance, aSphere);
+ if (aRecognition.GetStatus() == 0)
+ aResult = aRecognition.IsSphere(theTolerance, aSphere);
}
catch (...) {
return false;
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
- aResult = aRecognition.IsCone(theTolerance, aCone);
+ if (aRecognition.GetStatus() == 0)
+ aResult = aRecognition.IsCone(theTolerance, aCone);
}
catch (...) {
return false;
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
- aResult = aRecognition.IsCylinder(theTolerance, aCylinder);
+ if (aRecognition.GetStatus() == 0)
+ aResult = aRecognition.IsCylinder(theTolerance, aCylinder);
}
catch (...) {
return false;
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
- aResult = aRecognition.IsLine(theTolerance, aLine);
+ if (aRecognition.GetStatus() == 0)
+ aResult = aRecognition.IsLine(theTolerance, aLine);
}
catch (...) {
return false;
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
- aResult = aRecognition.IsCircle(theTolerance, aCircle);
+ if (aRecognition.GetStatus() == 0)
+ aResult = aRecognition.IsCircle(theTolerance, aCircle);
}
catch (...) {
return false;
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
- aResult = aRecognition.IsEllipse(theTolerance, aElips);
+ if (aRecognition.GetStatus() == 0)
+ aResult = aRecognition.IsEllipse(theTolerance, aElips);
}
catch (...) {
return false;