From: rraphael Date: Thu, 21 Jan 2021 20:00:54 +0000 (+0100) Subject: rectangle: remove internal concidences on diagonals, which are ignored by python... X-Git-Tag: V9_7_0a1~13^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=780f1245d1bb8e45aeead6b27a0823a9d79ea575;p=modules%2Fshaper.git rectangle: remove internal concidences on diagonals, which are ignored by python dump --- diff --git a/src/SketchPlugin/SketchPlugin_Rectangle.cpp b/src/SketchPlugin/SketchPlugin_Rectangle.cpp index 0518bdd33..22feb52a8 100644 --- a/src/SketchPlugin/SketchPlugin_Rectangle.cpp +++ b/src/SketchPlugin/SketchPlugin_Rectangle.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include @@ -196,7 +195,7 @@ void SketchPlugin_Rectangle::execute() for(int i = 0; i < 2; i++) { FeaturePtr aDiagonal = std::dynamic_pointer_cast(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(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);