ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
SetErrorCode(OK);
- return aRecognition.IsPlane(theTolerance, thePln);
+ return aRecognition.GetStatus() == 0 && aRecognition.IsPlane(theTolerance, thePln);
}
//=============================================================================
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
SetErrorCode(OK);
- return aRecognition.IsSphere(theTolerance, theSphere);
+ return aRecognition.GetStatus() == 0 && aRecognition.IsSphere(theTolerance, theSphere);
}
//=============================================================================
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
SetErrorCode(OK);
- return aRecognition.IsCone(theTolerance, theCone);
+ return aRecognition.GetStatus() == 0 && aRecognition.IsCone(theTolerance, theCone);
}
//=============================================================================
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
SetErrorCode(OK);
- return aRecognition.IsCylinder(theTolerance, theCylinder);
+ return aRecognition.GetStatus() == 0 && aRecognition.IsCylinder(theTolerance, theCylinder);
}
//=============================================================================
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
SetErrorCode(OK);
- return aRecognition.IsLine(theTolerance, theLine);
+ return aRecognition.GetStatus() == 0 && aRecognition.IsLine(theTolerance, theLine);
}
//=============================================================================
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
SetErrorCode(OK);
- return aRecognition.IsCircle(theTolerance, theCircle);
+ return aRecognition.GetStatus() == 0 && aRecognition.IsCircle(theTolerance, theCircle);
}
//=============================================================================
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
SetErrorCode(OK);
- return aRecognition.IsEllipse(theTolerance, theElips);
+ return aRecognition.GetStatus() == 0 && aRecognition.IsEllipse(theTolerance, theElips);
}