From: kgv Date: Tue, 17 Jul 2018 22:04:58 +0000 (+0300) Subject: 0029969: Modeling Algorithms - BRepPrimAPI_MakeHalfSpace::Shape() returns NULL shape... X-Git-Tag: OCCT_VC2017_73~50 X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff_plain;h=288fff89cc83bdffdaccf8a7437e80fc7e74cb02 0029969: Modeling Algorithms - BRepPrimAPI_MakeHalfSpace::Shape() returns NULL shape while reporting IsDone() --- diff --git a/src/BRepPrimAPI/BRepPrimAPI_MakeHalfSpace.cxx b/src/BRepPrimAPI/BRepPrimAPI_MakeHalfSpace.cxx index 60df649785..880be6166d 100644 --- a/src/BRepPrimAPI/BRepPrimAPI_MakeHalfSpace.cxx +++ b/src/BRepPrimAPI/BRepPrimAPI_MakeHalfSpace.cxx @@ -206,6 +206,7 @@ BRepPrimAPI_MakeHalfSpace::BRepPrimAPI_MakeHalfSpace(const TopoDS_Face& theFace, aShell.Reverse(); } BRep_Builder().Add(mySolid, aShell); + myShape = mySolid; Done(); } } @@ -235,6 +236,7 @@ BRepPrimAPI_MakeHalfSpace::BRepPrimAPI_MakeHalfSpace(const TopoDS_Shell& theShel aShell.Reverse(); } BRep_Builder().Add(mySolid, aShell); + myShape = mySolid; Done(); } }