[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:
committed by
Chris Hennes
parent
50d254e7a2
commit
4087f1e508
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user