fix CIDs 129192, 129078
This commit is contained in:
parent
45697ae2c7
commit
c0ad78d21a
|
@ -1862,7 +1862,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point)
|
||||||
if (theta1 >= 0.001*arcLength && theta1 <= 0.999*arcLength) {
|
if (theta1 >= 0.001*arcLength && theta1 <= 0.999*arcLength) {
|
||||||
if (theta1 > theta0) { // trim arc start
|
if (theta1 > theta0) { // trim arc start
|
||||||
delConstraintOnPoint(GeoId, start, false);
|
delConstraintOnPoint(GeoId, start, false);
|
||||||
Part::GeomArcOfHyperbola *aoe1 = dynamic_cast<Part::GeomArcOfHyperbola*>(geomlist[GeoId]);
|
Part::GeomArcOfHyperbola *aoe1 = static_cast<Part::GeomArcOfHyperbola*>(geomlist[GeoId]);
|
||||||
aoe1->setRange(startAngle + theta1, endAngle, /*emulateCCW=*/true);
|
aoe1->setRange(startAngle + theta1, endAngle, /*emulateCCW=*/true);
|
||||||
// constrain the trimming point on the corresponding geometry
|
// constrain the trimming point on the corresponding geometry
|
||||||
Sketcher::Constraint *newConstr = new Sketcher::Constraint();
|
Sketcher::Constraint *newConstr = new Sketcher::Constraint();
|
||||||
|
|
|
@ -222,7 +222,7 @@ void SketcherValidation::on_findButton_clicked()
|
||||||
vertexIds.push_back(id);
|
vertexIds.push_back(id);
|
||||||
}
|
}
|
||||||
else if (g->getTypeId() == Part::GeomArcOfHyperbola::getClassTypeId()) {
|
else if (g->getTypeId() == Part::GeomArcOfHyperbola::getClassTypeId()) {
|
||||||
const Part::GeomArcOfHyperbola *segm = dynamic_cast<const Part::GeomArcOfHyperbola*>(g);
|
const Part::GeomArcOfHyperbola *segm = static_cast<const Part::GeomArcOfHyperbola*>(g);
|
||||||
VertexIds id;
|
VertexIds id;
|
||||||
id.GeoId = (int)i;
|
id.GeoId = (int)i;
|
||||||
id.PosId = Sketcher::start;
|
id.PosId = Sketcher::start;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user