Salome HOME
Fix bug where two solids are produced by Cut operation (found by MKO)
authormpv <mpv@opencascade.com>
Tue, 10 Mar 2015 09:02:34 +0000 (12:02 +0300)
committermpv <mpv@opencascade.com>
Tue, 10 Mar 2015 09:02:34 +0000 (12:02 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_DFLoader.cpp

index 86c7b0a228059201fde6a5a2530aa90933fd8aab..61e28412aab9d44a70420e17db223e8cee585566 100644 (file)
@@ -23,6 +23,9 @@ const TopoDS_Shape GeomAlgoAPI_DFLoader::refineResult(const  TopoDS_Shape& theRe
     if (nbSubResults == 1) {
       itr.Initialize(theResult);
       if (itr.More()) aResult = itr.Value();
+    } else {
+      /// MPV: store compound anyway: it may be Boolean operation that produces two solids from one
+      aResult = theResult;
     }
   }
   return aResult;