fixes 0003683: FEM, GUI, incorrect display of constraints symbols on reference shapes

This commit is contained in:
wmayer
2019-01-15 11:01:45 +01:00
parent 3f51e25b26
commit d94fc4988e

View File

@@ -214,7 +214,8 @@ bool Constraint::getPoints(std::vector<Base::Vector3d> &points, std::vector<Base
steps = steps>CONSTRAINTSTEPLIMIT?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());
}