X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomValidators%2FGeomValidators_ZeroOffset.cpp;h=0c98260fa61610476326caaa30e9b2149304378c;hb=3e6012473696e5fd94e3c8240e2e1eda8def1743;hp=34aec623f19c73f82b40afca3c36832132c64af2;hpb=87474d56199326bace66da349e9dc2c44e02d3a7;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_ZeroOffset.cpp b/src/GeomValidators/GeomValidators_ZeroOffset.cpp index 34aec623f..0c98260fa 100644 --- a/src/GeomValidators/GeomValidators_ZeroOffset.cpp +++ b/src/GeomValidators/GeomValidators_ZeroOffset.cpp @@ -43,12 +43,12 @@ bool GeomValidators_ZeroOffset::isValid(const std::shared_ptr& ListOfShape aFacesList; if(theFeature->selection(*anIt)) { AttributeSelectionPtr aFaceSelection = theFeature->selection(*anIt); - ResultConstructionPtr aConstruction = + ResultConstructionPtr aConstruction = std::dynamic_pointer_cast(aFaceSelection->context()); if(aConstruction.get()) { int aSketchFacesNum = aConstruction->facesNum(); for(int aFaceIndex = 0; aFaceIndex < aSketchFacesNum; aFaceIndex++) { - std::shared_ptr aFace = + std::shared_ptr aFace = std::dynamic_pointer_cast(aConstruction->face(aFaceIndex)); if(aFace->isFace() && aFace->isPlanar()) { aFacesList.push_back(aFace); @@ -70,7 +70,7 @@ bool GeomValidators_ZeroOffset::isValid(const std::shared_ptr& if(!aContextShape.get()) { break; } - ResultConstructionPtr aConstruction = + ResultConstructionPtr aConstruction = std::dynamic_pointer_cast(aContext); if(!aConstruction.get()) { break; @@ -178,7 +178,7 @@ bool GeomValidators_ZeroOffset::isValid(const std::shared_ptr& } std::shared_ptr aPln = aFace->getPlane(); if(aPln.get()) { - for(ListOfShape::const_iterator + for(ListOfShape::const_iterator anIter = aFacesList.cbegin(); anIter != aFacesList.cend(); anIter++) { std::shared_ptr aSketchShape = *anIter; std::shared_ptr aSketchFace(new GeomAPI_Face(aSketchShape));