]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Bos #24164: [CEA] Failing SHAPER tests (regression after #20641)
authorArtem Zhidkov <Artem.Zhidkov@gmail.com>
Thu, 8 Apr 2021 17:03:17 +0000 (20:03 +0300)
committerArtem Zhidkov <Artem.Zhidkov@gmail.com>
Thu, 8 Apr 2021 17:03:17 +0000 (20:03 +0300)
src/SketchAPI/SketchAPI_Sketch.cpp

index c191b45a2907b9f6301c7293e5630f16d91878dd..838a558bb5d7af59874c3ff94c70c14ba59681b9 100644 (file)
@@ -1631,34 +1631,6 @@ void SketchAPI_Sketch::dump(ModelHighAPI_Dumper& theDumper) const
     std::list<std::list<ResultPtr> > aFaces;
     edgesOfSketchFaces(aCompFeat, aFaces);
 
-    /// remove faces that must not be dumped
-    std::vector< std::list<std::list<ResultPtr>>::iterator> aFacesToRemove;
-    for(auto itFaces = aFaces.begin(); itFaces != aFaces.end(); ++itFaces)
-    {
-      auto & facesGroup = *itFaces;
-      std::vector<std::list<ResultPtr>::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(), ' ');