]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchSolver/SketchSolver_ConstraintMirror.h
Salome HOME
Add tools
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintMirror.h
index e65dcb90bc77363098636fda0ef710fb3c07a52b..f6aa365eb616810b736c30d501cd36644449a985 100644 (file)
 class SketchSolver_ConstraintMirror : public SketchSolver_Constraint
 {
 public:
+  /// Constructor based on SketchPlugin constraint
   SketchSolver_ConstraintMirror(ConstraintPtr theConstraint) :
       SketchSolver_Constraint(theConstraint),
-      myNumberOfObjects(0)
+      myNumberOfObjects(0),
+      myMirrorLineLength(0.0)
   {}
 
   virtual int getType() const
@@ -66,8 +68,12 @@ private:
                         const Slvs_Entity& theMirror,
                         const double theMirrorLine[]) const;
 
+  /// \brief Precisely update last point to be on arc
+  void adjustArcPoints(const Slvs_Entity& theArc) const;
+
 private:
-  size_t myNumberOfObjects; ///< number of previously mirrored objects
+  size_t myNumberOfObjects;  ///< number of previously mirrored objects
+  double myMirrorLineLength; ///< length of mirror line (should be always greater than 0)
 };
 
 #endif