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 {
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;
}
}
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);
// 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"
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