[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:
committed by
Chris Hennes
parent
076232a67a
commit
56b19515b6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user