From 68eaab2e9a4d4c8c729b790e61f506ebb21928b0 Mon Sep 17 00:00:00 2001 From: Clarisse Genrault Date: Thu, 12 Jan 2017 12:24:02 +0100 Subject: [PATCH] Debug. --- src/GeomAlgoAPI/GeomAlgoAPI_Box.cpp | 3 ++- src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp | 14 +++++++------- src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h | 8 ++++---- src/PrimitivesAPI/PrimitivesAPI_Box.h | 6 +++--- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Box.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Box.cpp index 6c795cfa7..04c730e63 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Box.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Box.cpp @@ -65,7 +65,8 @@ bool GeomAlgoAPI_Box::check() if (fabs(aDiffX) < Precision::Confusion() || fabs(aDiffY) < Precision::Confusion() || fabs(aDiffZ) < Precision::Confusion()) { - myError = "The points belong both to one of the OXY, OYZ or OZX planes"; + myError = + "Box builder with points :: the points belong both to one of the OXY, OYZ or OZX planes"; return false; } } else { diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp index dedd3caa9..143f41c4b 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp @@ -41,39 +41,39 @@ bool GeomAlgoAPI_Symmetry::check() switch (myMethodType) { case BY_POINT: { if (!myPoint) { - myError = "Mirror builder :: point is invalid."; + myError = "Symmetry builder :: point is invalid."; return false; } if (!mySourceShape) { - myError = "Mirror builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is invalid."; return false; } return true; } case BY_AXIS: { if (!myAxis) { - myError = "Mirror builder :: axis is invalid."; + myError = "Symmetry builder :: axis is invalid."; return false; } if (!mySourceShape) { - myError = "Mirror builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is invalid."; return false; } return true; } case BY_PLANE: { if (!myPlane) { - myError = "Mirror builder :: plane is invalid."; + myError = "Symmetry builder :: plane is invalid."; return false; } if (!mySourceShape) { - myError = "Translation builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is invalid."; return false; } return true; } default: { - myError = "Translation builder :: method not implemented."; + myError = "Symmetry builder :: method not implemented."; return false; } } diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h index 955e06ad6..153f451ad 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h @@ -23,15 +23,15 @@ class GeomAlgoAPI_Symmetry : public GeomAlgoAPI_MakeShape public: /// Type of mirror operation enum MethodType { - BY_POINT, ///< Mirror by point. - BY_AXIS, ///< Mirror by axis. - BY_PLANE ///< Mirror by plane. + BY_POINT, ///< Symmetry by point. + BY_AXIS, ///< Symmetry by axis. + BY_PLANE ///< Symmetry by plane. }; /// \brief Creates an object which is obtained from current object by performing /// a symmetry operation by a point. /// \param[in] theSourceShape a shape to be moved. - /// \param[in] thePoint symmetry point. + /// \param[in] thePoint symmetry point. GEOMALGOAPI_EXPORT GeomAlgoAPI_Symmetry(std::shared_ptr theSourceShape, std::shared_ptr thePoint); diff --git a/src/PrimitivesAPI/PrimitivesAPI_Box.h b/src/PrimitivesAPI/PrimitivesAPI_Box.h index 17249ed29..ca0dc20a9 100644 --- a/src/PrimitivesAPI/PrimitivesAPI_Box.h +++ b/src/PrimitivesAPI/PrimitivesAPI_Box.h @@ -4,8 +4,8 @@ // Created: 28 June 2016 // Author: Clarisse Genrault (CEA) -#ifndef PrimitivesAPI_Box_H_ -#define PrimitivesAPI_Box_H_ +#ifndef PRIMITIVESAPI_BOX_H_ +#define PRIMITIVESAPI_BOX_H_ #include "PrimitivesAPI.h" @@ -92,4 +92,4 @@ BoxPtr addBox(const std::shared_ptr& thePart, const ModelHighAPI_Selection& theFirstPoint, const ModelHighAPI_Selection& theSecondPoint); -#endif // PrimitivesAPI_Box_H_ \ No newline at end of file +#endif // PRIMITIVESAPI_BOX_H_ \ No newline at end of file -- 2.39.2