From: mpv Date: Tue, 10 Mar 2015 09:02:34 +0000 (+0300) Subject: Fix bug where two solids are produced by Cut operation (found by MKO) X-Git-Tag: V_1.1.0~143^2~4^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=416a42ef199bf4105302e79645ad6334dd74f41b;p=modules%2Fshaper.git Fix bug where two solids are produced by Cut operation (found by MKO) --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_DFLoader.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_DFLoader.cpp index 86c7b0a22..61e28412a 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_DFLoader.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_DFLoader.cpp @@ -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;