From d94fc4988e2d26ea9ef65b09cc84f1f287411181 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 15 Jan 2019 11:01:45 +0100 Subject: [PATCH] fixes 0003683: FEM, GUI, incorrect display of constraints symbols on reference shapes --- src/Mod/Fem/App/FemConstraint.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/App/FemConstraint.cpp b/src/Mod/Fem/App/FemConstraint.cpp index 902d45c98b64..4ddd412001ff 100644 --- a/src/Mod/Fem/App/FemConstraint.cpp +++ b/src/Mod/Fem/App/FemConstraint.cpp @@ -214,7 +214,8 @@ bool Constraint::getPoints(std::vector &points, std::vectorCONSTRAINTSTEPLIMIT?CONSTRAINTSTEPLIMIT:steps; //OvG: Place upper limit on number of steps double step = (lp - fp) / steps; for (int i = 0; i < steps + 1; i++) { - gp_Pnt p = curve.Value(i * step); + // Parameter values must be in the range [fp, lp] (#0003683) + gp_Pnt p = curve.Value(fp + i * step); points.push_back(Base::Vector3d(p.X(), p.Y(), p.Z())); normals.push_back(NormalDirection.getValue()); }