Rectangle DSH : Fixes #11285, for frames two parallels constraints were missing.

This commit is contained in:
Paddle
2023-11-06 11:06:21 +01:00
committed by abdullahtahiriyo
parent e7ed8e295e
commit fee6ba28d2

View File

@@ -1329,12 +1329,14 @@ private:
firstCurve + 5,
Sketcher::PointPos::none,
firstCurve + 7);
if (fabs(angle123 - M_PI / 2) < Precision::Confusion()) {
addToShapeConstraints(Sketcher::Perpendicular,
firstCurve + 4,
Sketcher::PointPos::none,
firstCurve + 5);
}
addToShapeConstraints(Sketcher::Parallel,
firstCurve,
Sketcher::PointPos::none,
firstCurve + 4);
addToShapeConstraints(Sketcher::Parallel,
firstCurve + 1,
Sketcher::PointPos::none,
firstCurve + 5);
}
// add construction lines