[planegcs] Add ConstraintAngleViaTwoPoints

Needed for B-spline to B-spline end to end tangent. The end point of one is for
now not usable in to get normal at the other.
This commit is contained in:
Ajinkya Dahale
2024-02-25 21:38:25 +05:30
committed by Chris Hennes
parent 50d254e7a2
commit 4087f1e508
4 changed files with 160 additions and 1 deletions

View File

@@ -774,6 +774,20 @@ int System::addConstraintAngleViaPoint(Curve& crv1,
return addConstraint(constr);
}
int System::addConstraintAngleViaTwoPoints(Curve& crv1,
Curve& crv2,
Point& p1,
Point& p2,
double* angle,
int tagId,
bool driving)
{
Constraint* constr = new ConstraintAngleViaTwoPoints(crv1, crv2, p1, p2, angle);
constr->setTag(tagId);
constr->setDriving(driving);
return addConstraint(constr);
}
int System::addConstraintAngleViaPointAndParam(Curve& crv1,
Curve& crv2,
Point& p,