Part: Geometry - encapsulate construction access

This commit is contained in:
Abdullah Tahiri
2020-10-25 03:41:42 +01:00
parent 1a9dcdb3db
commit 00a1aa6225
9 changed files with 78 additions and 74 deletions

View File

@@ -146,7 +146,7 @@ int SketchAnalysis::detectMissingPointOnPointConstraints(double precision, bool
for (std::size_t i=0; i<geom.size(); i++) {
Part::Geometry* g = geom[i];
if(g->Construction && !includeconstruction)
if(g->getConstruction() && !includeconstruction)
continue;
if (g->getTypeId() == Part::GeomLineSegment::getClassTypeId()) {
@@ -830,7 +830,7 @@ int SketchAnalysis::detectDegeneratedGeometries(double tolerance)
for (std::size_t i=0; i<geom.size(); i++) {
Part::Geometry* g = geom[i];
if (g->Construction)
if (g->getConstruction())
continue;
if (g->getTypeId().isDerivedFrom(Part::GeomCurve::getClassTypeId())) {
@@ -851,7 +851,7 @@ int SketchAnalysis::removeDegeneratedGeometries(double tolerance)
for (std::size_t i=0; i<geom.size(); i++) {
Part::Geometry* g = geom[i];
if (g->Construction)
if (g->getConstruction())
continue;
if (g->getTypeId().isDerivedFrom(Part::GeomCurve::getClassTypeId())) {