From f62bebe543e3056f6f6d56d9f7bd76e3e339c053 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Thu, 8 Apr 2021 20:03:17 +0300 Subject: [PATCH] Bos #24164: [CEA] Failing SHAPER tests (regression after #20641) --- src/SketchAPI/SketchAPI_Sketch.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) 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(), ' '); -- 2.39.2