add class GeomArcOfConic to reduce code duplication
This commit is contained in:
@@ -4454,7 +4454,7 @@ int SketchObject::port_reversedExternalArcs(bool justAnalyze)
|
||||
Part::Geometry* g = this->ExternalGeo[-geoId-1];
|
||||
if (g->getTypeId() == Part::GeomArcOfCircle::getClassTypeId()){
|
||||
const Part::GeomArcOfCircle *segm = static_cast<const Part::GeomArcOfCircle*>(g);
|
||||
if(segm->isReversedInXY()){
|
||||
if (segm->isReversed()){
|
||||
//Gotcha! a link to an endpoint of external arc that is reversed.
|
||||
//create a constraint copy, affect it, replace the pointer
|
||||
if (!affected)
|
||||
|
||||
@@ -388,7 +388,7 @@ void SketcherValidation::on_findReversed_clicked()
|
||||
//only arcs of circles need to be repaired. Arcs of ellipse were so broken there should be nothing to repair from.
|
||||
if (g->getTypeId() == Part::GeomArcOfCircle::getClassTypeId()) {
|
||||
const Part::GeomArcOfCircle *segm = static_cast<const Part::GeomArcOfCircle*>(g);
|
||||
if(segm->isReversedInXY()){
|
||||
if (segm->isReversed()) {
|
||||
points.push_back(segm->getStartPoint(/*emulateCCW=*/true));
|
||||
points.push_back(segm->getEndPoint(/*emulateCCW=*/true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user