]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
rectangle: remove internal concidences on diagonals, which are ignored by python...
authorrraphael <raphael.raphael@c-s.fr>
Thu, 21 Jan 2021 20:00:54 +0000 (21:00 +0100)
committerrraphael <raphael.raphael@c-s.fr>
Thu, 21 Jan 2021 20:00:54 +0000 (21:00 +0100)
src/SketchPlugin/SketchPlugin_Rectangle.cpp

index 0518bdd33a224a48b6c859b0c34534eeb476bedb..22feb52a80c016530894e896083f58501b85d53a 100644 (file)
@@ -33,7 +33,6 @@
 #include <SketchPlugin_ConstraintCoincidence.h>
 #include <SketchPlugin_ConstraintHorizontal.h>
 #include <SketchPlugin_ConstraintVertical.h>
-#include <SketchPlugin_ConstraintCoincidenceInternal.h>
 
 #include <cmath>
 
@@ -196,7 +195,7 @@ void SketchPlugin_Rectangle::execute()
       for(int i = 0; i < 2; i++)
       {
         FeaturePtr aDiagonal = std::dynamic_pointer_cast<ModelAPI_Feature>(aDiagonalList->object(i));
-        FeaturePtr aConstraint = SketchPlugin_Tools::createConstraintAttrObject(aSketch, SketchPlugin_ConstraintCoincidenceInternal::ID(),
+        FeaturePtr aConstraint = SketchPlugin_Tools::createConstraintAttrObject(aSketch, SketchPlugin_ConstraintCoincidence::ID(),
                                                                                 aCoord, aDiagonal);
         aNotToDumpList->append(aConstraint);
       }
@@ -219,7 +218,7 @@ void SketchPlugin_Rectangle::execute()
       {
         auto aDiagonalPoint = cornerToDiagonalLinePoints[i];
         FeaturePtr aDiagonal = std::dynamic_pointer_cast<ModelAPI_Feature>(aDiagonalList->object(aDiagonalPoint.first));
-        FeaturePtr aConstraint = SketchPlugin_Tools::createConstraintAttrAttr(aSketch, SketchPlugin_ConstraintCoincidenceInternal::ID(),
+        FeaturePtr aConstraint = SketchPlugin_Tools::createConstraintAttrAttr(aSketch, SketchPlugin_ConstraintCoincidence::ID(),
                                                                               aDiagonal->attribute(aDiagonalPoint.second),
                                                                               aLine->attribute(SketchPlugin_Line::START_ID()));
         aNotToDumpList->append(aConstraint);