std::shared_ptr<GeomAlgoAPI_Translation> aTranslationAlgo(
new GeomAlgoAPI_Translation(aBaseShape, anAxis, i*aStep));
- if (!aTranslationAlgo->check()) {
- setError(aTranslationAlgo->getError());
- break;
- }
-
- aTranslationAlgo->build();
-
// Checking that the algorithm worked properly.
if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(
aTranslationAlgo, getKind(), anError)) {
std::shared_ptr<GeomAlgoAPI_Translation> aTranslationAlgo(
new GeomAlgoAPI_Translation(aBaseShape, dx, dy, dz));
- if (!aTranslationAlgo->check()) {
- setError(aTranslationAlgo->getError());
- break;
- }
-
- aTranslationAlgo->build();
-
// Checking that the algorithm worked properly.
if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(
aTranslationAlgo, getKind(), anError)) {