From: Artem Zhidkov Date: Thu, 8 Apr 2021 17:03:17 +0000 (+0300) Subject: Bos #24164: [CEA] Failing SHAPER tests (regression after #20641) X-Git-Tag: V9_7_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f62bebe543e3056f6f6d56d9f7bd76e3e339c053;p=modules%2Fshaper.git Bos #24164: [CEA] Failing SHAPER tests (regression after #20641) --- diff --git a/src/SketchAPI/SketchAPI_Sketch.cpp b/src/SketchAPI/SketchAPI_Sketch.cpp index c191b45a2..838a558bb 100644 --- a/src/SketchAPI/SketchAPI_Sketch.cpp +++ b/src/SketchAPI/SketchAPI_Sketch.cpp @@ -1631,34 +1631,6 @@ void SketchAPI_Sketch::dump(ModelHighAPI_Dumper& theDumper) const std::list > aFaces; edgesOfSketchFaces(aCompFeat, aFaces); - /// remove faces that must not be dumped - std::vector< std::list>::iterator> aFacesToRemove; - for(auto itFaces = aFaces.begin(); itFaces != aFaces.end(); ++itFaces) - { - auto & facesGroup = *itFaces; - std::vector::iterator> subFacestoRemove; - for(auto itGroup = facesGroup.begin(); itGroup != facesGroup.end(); ++itGroup) - { - FeaturePtr aFeature = ModelAPI_Feature::feature(*itGroup); - if(theDumper.isDumped(aFeature)){ - subFacestoRemove.push_back(itGroup); - } - } - for(auto itGroup :subFacestoRemove){ - facesGroup.erase(itGroup); - } - - if(!facesGroup.size()){ - aFacesToRemove.push_back(itFaces); - } - } - for(auto itFaces :aFacesToRemove){ - aFaces.erase(itFaces); - } - - if(!aFaces.size()) - return; - const std::string& aSketchName = theDumper.name(aBase); std::string aMethodName(".changeFacesOrder"); std::string aSpaceShift(aSketchName.size() + aMethodName.size(), ' ');