From: Clarisse GENRAULT - DEN/DANS/DM2S/STMF/LGLS - 2012/10/01 Date: Tue, 14 Mar 2017 11:19:41 +0000 (+0100) Subject: Deleted check after build for transformations. X-Git-Tag: V_2.7.0~231 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d7d8eab2109542bd50a90a09c63f8fee1bfbb60;p=modules%2Fshaper.git Deleted check after build for transformations. --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp index 9c8e9aa6d..9765c6456 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp @@ -209,9 +209,7 @@ namespace GeomAlgoAPI_ShapeAPI if(!aTranslationAlgo.isDone()) { throw GeomAlgoAPI_Exception(aTranslationAlgo.getError()); } - if (!aTranslationAlgo.checkValid("Translation builder with axis and distance")) { - throw GeomAlgoAPI_Exception(aTranslationAlgo.getError()); - } + return aTranslationAlgo.shape(); } @@ -233,9 +231,7 @@ namespace GeomAlgoAPI_ShapeAPI if(!aTranslationAlgo.isDone()) { throw GeomAlgoAPI_Exception(aTranslationAlgo.getError()); } - if (!aTranslationAlgo.checkValid("Translation builder with dimensions")) { - throw GeomAlgoAPI_Exception(aTranslationAlgo.getError()); - } + return aTranslationAlgo.shape(); } @@ -256,12 +252,11 @@ namespace GeomAlgoAPI_ShapeAPI if(!aTranslationAlgo.isDone()) { throw GeomAlgoAPI_Exception(aTranslationAlgo.getError()); } - if (!aTranslationAlgo.checkValid("Translation builder with two points")) { - throw GeomAlgoAPI_Exception(aTranslationAlgo.getError()); - } + return aTranslationAlgo.shape(); } + //=============================================================================================== std::shared_ptr GeomAlgoAPI_ShapeAPI::makeRotation( std::shared_ptr theSourceShape, std::shared_ptr theAxis, @@ -278,12 +273,11 @@ namespace GeomAlgoAPI_ShapeAPI if(!aRotationAlgo.isDone()) { throw GeomAlgoAPI_Exception(aRotationAlgo.getError()); } - if (!aRotationAlgo.checkValid("Rotation builder with two points")) { - throw GeomAlgoAPI_Exception(aRotationAlgo.getError()); - } + return aRotationAlgo.shape(); } + //=============================================================================================== std::shared_ptr GeomAlgoAPI_ShapeAPI::makeRotation( std::shared_ptr theSourceShape, std::shared_ptr theCenterPoint, @@ -301,9 +295,7 @@ namespace GeomAlgoAPI_ShapeAPI if(!aRotationAlgo.isDone()) { throw GeomAlgoAPI_Exception(aRotationAlgo.getError()); } - if (!aRotationAlgo.checkValid("Rotation builder with two points")) { - throw GeomAlgoAPI_Exception(aRotationAlgo.getError()); - } + return aRotationAlgo.shape(); } @@ -323,9 +315,7 @@ namespace GeomAlgoAPI_ShapeAPI if(!aSymmetryAlgo.isDone()) { throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); } - if (!aSymmetryAlgo.checkValid("Symmetry builder by a point")) { - throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); - } + return aSymmetryAlgo.shape(); } @@ -345,9 +335,7 @@ namespace GeomAlgoAPI_ShapeAPI if(!aSymmetryAlgo.isDone()) { throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); } - if (!aSymmetryAlgo.checkValid("Symmetry builder by an axis")) { - throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); - } + return aSymmetryAlgo.shape(); } @@ -367,9 +355,7 @@ namespace GeomAlgoAPI_ShapeAPI if(!aSymmetryAlgo.isDone()) { throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); } - if (!aSymmetryAlgo.checkValid("Symmetry builder by a plane")) { - throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); - } + return aSymmetryAlgo.shape(); } @@ -390,9 +376,7 @@ namespace GeomAlgoAPI_ShapeAPI if(!aScaleAlgo.isDone()) { throw GeomAlgoAPI_Exception(aScaleAlgo.getError()); } - if (!aScaleAlgo.checkValid("Scale builder by a scale factor")) { - throw GeomAlgoAPI_Exception(aScaleAlgo.getError()); - } + return aScaleAlgo.shape(); } @@ -416,9 +400,7 @@ namespace GeomAlgoAPI_ShapeAPI if(!aScaleAlgo.isDone()) { throw GeomAlgoAPI_Exception(aScaleAlgo.getError()); } - if (!aScaleAlgo.checkValid("Scale builder by dimensions")) { - throw GeomAlgoAPI_Exception(aScaleAlgo.getError()); - } + return aScaleAlgo.shape(); }