Sketcher: Point on Object solver constraint

This commit is contained in:
Abdullah Tahiri
2016-12-24 01:14:15 +01:00
parent 4f3d3ff68a
commit 84b6e97f2d
5 changed files with 136 additions and 1 deletions

View File

@@ -1886,7 +1886,13 @@ int Sketch::addPointOnObjectConstraint(int geoId1, PointPos pos1, int geoId2)
int tag = ++ConstraintsCounter;
GCSsys.addConstraintPointOnHyperbolicArc(p1, a, tag);
return ConstraintsCounter;
}
}
else if (Geoms[geoId2].type == ArcOfParabola) {
GCS::ArcOfParabola &a = ArcsOfParabola[Geoms[geoId2].index];
int tag = ++ConstraintsCounter;
GCSsys.addConstraintPointOnParabolicArc(p1, a, tag);
return ConstraintsCounter;
}
}
return -1;
}