Salome HOME
Debug.
authorClarisse Genrault <clarisse.genrault@cea.fr>
Thu, 12 Jan 2017 11:24:02 +0000 (12:24 +0100)
committerClarisse Genrault <clarisse.genrault@cea.fr>
Thu, 12 Jan 2017 11:24:02 +0000 (12:24 +0100)
src/GeomAlgoAPI/GeomAlgoAPI_Box.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h
src/PrimitivesAPI/PrimitivesAPI_Box.h

index 6c795cfa73fc3db61297cb4c0a04456478b5a2d0..04c730e63aa78665198e998ddfcf8f5b88ab4175 100644 (file)
@@ -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 {
index dedd3caa91e66d244c419f4b8af0e05ba79feb75..143f41c4bfc26356b19d1ca76d497b43a38695b6 100644 (file)
@@ -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;
     }
   }
index 955e06ad61a54d211d92b9c13f3159fb0bbacc0c..153f451adb91f592d99f7ad0acafb10adeba7b92 100644 (file)
@@ -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<GeomAPI_Shape> theSourceShape,
                                           std::shared_ptr<GeomAPI_Pnt>   thePoint);
 
index 17249ed29e5390455167432c633d5840af619e35..ca0dc20a9acda78a254f0c8aba7df84a3f9c93ae 100644 (file)
@@ -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<ModelAPI_Document>& 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