Sketcher: BSpline solver Internal Geometry for poles

This commit is contained in:
Abdullah Tahiri
2017-01-10 22:14:13 +01:00
parent 0f8db07e90
commit 167240e197
5 changed files with 38 additions and 1 deletions

View File

@@ -1007,6 +1007,12 @@ int System::addConstraintInternalAlignmentParabolaFocus(Parabola &e, Point &p1,
return addConstraintEqual(e.focus1.y, p1.y, tagId);
}
int System::addConstraintInternalAlignmentBSplineControlPoint(BSpline &b, Circle &c, int poleindex, int tagId)
{
addConstraintEqual(b.poles[poleindex].x, c.center.x, tagId);
return addConstraintEqual(b.poles[poleindex].y, c.center.y, tagId);
}
//calculates angle between two curves at point of their intersection p. If two
//points are supplied, p is used for first curve and p2 for second, yielding a