From: Clarisse Genrault Date: Thu, 5 Jan 2017 07:29:27 +0000 (+0100) Subject: Debug (Google style). X-Git-Tag: V_2.7.0~350 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25102b172e344e91a9b4a79e37af1566a6764351;p=modules%2Fshaper.git Debug (Google style). --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp index 185a2ca8b..f738e5c41 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp @@ -134,7 +134,7 @@ namespace GeomAlgoAPI_ShapeAPI std::shared_ptr thePoint) throw (GeomAlgoAPI_Exception) { GeomAlgoAPI_Symmetry aSymmetryAlgo(theSourceShape, thePoint); - + if (!aSymmetryAlgo.check()) { throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); } @@ -156,7 +156,7 @@ namespace GeomAlgoAPI_ShapeAPI std::shared_ptr theAxis) throw (GeomAlgoAPI_Exception) { GeomAlgoAPI_Symmetry aSymmetryAlgo(theSourceShape, theAxis); - + if (!aSymmetryAlgo.check()) { throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); } @@ -178,7 +178,7 @@ namespace GeomAlgoAPI_ShapeAPI std::shared_ptr thePlane) throw (GeomAlgoAPI_Exception) { GeomAlgoAPI_Symmetry aSymmetryAlgo(theSourceShape, thePlane); - + if (!aSymmetryAlgo.check()) { throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError()); } diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h index da69e20d4..fbed6c1cc 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h @@ -70,7 +70,7 @@ public: std::shared_ptr theSourceShape, std::shared_ptr theStartPoint, std::shared_ptr theEndPoint) throw (GeomAlgoAPI_Exception); - + /// Performs a symmetry by a point static std::shared_ptr makeSymmetry( std::shared_ptr theSourceShape, diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp index e8f4db197..dedd3caa9 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp @@ -105,9 +105,9 @@ void GeomAlgoAPI_Symmetry::build() return; } } - + const TopoDS_Shape& aSourceShape = mySourceShape->impl(); - + if(aSourceShape.IsNull()) { myError = "Mirror builder :: source shape does not contain any actual shape."; return;