From 416a42ef199bf4105302e79645ad6334dd74f41b Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 10 Mar 2015 12:02:34 +0300 Subject: [PATCH] Fix bug where two solids are produced by Cut operation (found by MKO) --- src/GeomAlgoAPI/GeomAlgoAPI_DFLoader.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2