]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix wrong DoF when split line with a point on it
authorazv <azv@opencascade.com>
Tue, 28 Feb 2017 14:07:23 +0000 (17:07 +0300)
committerazv <azv@opencascade.com>
Tue, 28 Feb 2017 14:07:23 +0000 (17:07 +0300)
src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp
src/SketchSolver/SketchSolver_ConstraintCoincidence.h

index 8501289fd2b475d9532f2d77cc5eba1796d783d6..c2f35d24e110b11bbc780c03abaa9b756642e7c6 100644 (file)
@@ -32,6 +32,12 @@ void SketchSolver_ConstraintCoincidence::process()
   myStorage->notify(myBaseConstraint);
 }
 
+bool SketchSolver_ConstraintCoincidence::remove()
+{
+  myInSolver = false;
+  return SketchSolver_Constraint::remove();
+}
+
 void SketchSolver_ConstraintCoincidence::getAttributes(
     EntityWrapperPtr& theValue,
     std::vector<EntityWrapperPtr>& theAttributes)
index 46828e9ed9c59ccff31f07764d62bc964bb34e22..9169f0021f857470ae9699fa706965ba0798ae63 100644 (file)
@@ -27,6 +27,9 @@ public:
   virtual void notify(const FeaturePtr&      theFeature,
                       PlaneGCSSolver_Update* theUpdater);
 
+  /// \brief Remove constraint
+  virtual bool remove();
+
 protected:
   /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
   virtual void process();