]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Adjusting point-line distance only in case of constraint creation
authorazv <azv@opencascade.com>
Thu, 16 Apr 2015 10:10:55 +0000 (13:10 +0300)
committerazv <azv@opencascade.com>
Thu, 16 Apr 2015 10:11:14 +0000 (13:11 +0300)
src/SketchSolver/SketchSolver_ConstraintDistance.cpp
src/SketchSolver/SketchSolver_ConstraintDistance.h

index 51f0d73592bfeb8c433a5e9267e119296b3ea613..d256a25ed2848881b5e70aa4af1000ef00294065 100644 (file)
@@ -53,11 +53,8 @@ void SketchSolver_ConstraintDistance::process()
       getType(), myGroup->getWorkplaneId(), aValue, aPoint[0], aPoint[1], aLine, SLVS_E_UNKNOWN);
   aConstraint.h = myStorage->addConstraint(aConstraint);
   mySlvsConstraints.push_back(aConstraint.h);
-  adjustConstraint();
-}
 
-void SketchSolver_ConstraintDistance::adjustConstraint()
-{
+  // Adjust point-line distance
   if (getType() != SLVS_C_PT_LINE_DISTANCE)
     return;
 
@@ -84,4 +81,3 @@ void SketchSolver_ConstraintDistance::adjustConstraint()
     }
   }
 }
-
index 48cadbfca491656fee17221d8a0508c8ccd52f65..ff594c10cfc7c13577b6ae9feebcb8feb947f780 100644 (file)
@@ -28,9 +28,6 @@ protected:
   /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
   virtual void process();
 
-  /// \brief Verifies the sign of the distance between line and point and change it if necessary
-  virtual void adjustConstraint();
-
 private:
   int myType; ///< type of constraint (applicable: SLVS_C_PT_PT_DISTANCE, SLVS_C_PT_LINE_DISTANCE)
 };