#include <ModelAPI_Validator.h>
#include <GeomAlgoAPI_Revolution.h>
+#include <GeomAlgoAPI_Tools.h>
#include <GeomAPI_Edge.h>
#include <GeomAPI_Lin.h>
}
// Generating result for each base shape.
+ std::string anError;
for(ListOfShape::const_iterator
anIter = theBaseShapes.cbegin(); anIter != theBaseShapes.cend(); anIter++) {
GeomShapePtr aBaseShape = *anIter;
aBaseShape, anAxis,
aToShape, aToAngle,
aFromShape, aFromAngle));
- if(!isMakeShapeValid(aRevolAlgo)) {
+ if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(aRevolAlgo, getKind(), anError)) {
+ setError(anError);
return false;
}