Skip to content

Commit

Permalink
Sketcher: Validation of Parabola
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahtahiriyo committed Dec 18, 2016
1 parent 9e52842 commit d600bfa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Mod/Sketcher/Gui/TaskSketcherValidation.cpp
Expand Up @@ -233,6 +233,18 @@ void SketcherValidation::on_findButton_clicked()
id.v = segm->getEndPoint();
vertexIds.push_back(id);
}
else if (g->getTypeId() == Part::GeomArcOfParabola::getClassTypeId()) {
const Part::GeomArcOfParabola *segm = dynamic_cast<const Part::GeomArcOfParabola*>(g);
VertexIds id;
id.GeoId = (int)i;
id.PosId = Sketcher::start;
id.v = segm->getStartPoint();
vertexIds.push_back(id);
id.GeoId = (int)i;
id.PosId = Sketcher::end;
id.v = segm->getEndPoint();
vertexIds.push_back(id);
}
}

std::set<ConstraintIds, Constraint_Less> coincidences;
Expand Down

0 comments on commit d600bfa

Please sign in to comment.