Salome HOME
Fix for the porting to new OCCT 7.4.0 : unit test TestBooleanCommon_SolidsHistory
authormpv <mpv@opencascade.com>
Thu, 5 Mar 2020 08:00:12 +0000 (11:00 +0300)
committermpv <mpv@opencascade.com>
Thu, 5 Mar 2020 08:00:12 +0000 (11:00 +0300)
src/FeaturesPlugin/FeaturesPlugin_Tools.cpp

index f77919fe18797493d3e2d4416a1cfa8071233d04..ea354876b20c63a27736715113dc4c9523e0eaae 100644 (file)
@@ -120,6 +120,13 @@ void FeaturesPlugin_Tools::loadDeletedShapes(ResultBodyPtr theResultBody,
                                      *anIter,
                                      GeomAPI_Shape::FACE,
                                      theResultShapesCompound);
+    // store information about deleted solids because of unittest TestBooleanCommon_SolidsHistory
+    // on OCCT 7.4.0 : common produces modified compsolid, so, move to the end for removed solids
+    // starts to produce whole compsolid
+    theResultBody->loadDeletedShapes(theMakeShape,
+                                     *anIter,
+                                     GeomAPI_Shape::SOLID,
+                                     theResultShapesCompound);
   }
 }