]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_MultiTranslation.cpp
Salome HOME
Refactor the transformation algorithms
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_MultiTranslation.cpp
index 9f311df137ea6909fa03c345b30f955ab1617064..51e96cd4a5aea9b1150d85ef45ca806d01719ba2 100644 (file)
@@ -179,13 +179,6 @@ void FeaturesPlugin_MultiTranslation::performOneDirection()
         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)) {
@@ -379,13 +372,6 @@ void FeaturesPlugin_MultiTranslation::performTwoDirection()
           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)) {