[Sketcher] [planegcs] Add "tangent at b-spline knot" constraint

Also squashes:

[Sketcher] [planegcs] Support tangent at NURBS knot

...which means support rational B-splines
This commit is contained in:
Ajinkya Dahale
2022-09-21 20:25:54 +05:30
committed by Chris Hennes
parent 076232a67a
commit 56b19515b6
4 changed files with 244 additions and 1 deletions

View File

@@ -812,6 +812,14 @@ int System::addConstraintTangentCircumf(Point &p1, Point &p2, double *rad1, doub
return addConstraint(constr);
}
int System::addConstraintTangentAtBSplineKnot(BSpline &b, Line &l, size_t knotindex, int tagId, bool driving)
{
Constraint *constr = new ConstraintSlopeAtBSplineKnot(b, l, knotindex);
constr->setTag(tagId);
constr->setDriving(driving);
return addConstraint(constr);
}
// derived constraints
int System::addConstraintP2PCoincident(Point &p1, Point &p2, int tagId, bool driving)