From 8b721799911ead17e07f6de3d213ce69901ded0b Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 15 Nov 2011 16:00:03 +0000 Subject: [PATCH] + make a solid shape from a wedge git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5139 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Part/App/PrimitiveFeature.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/App/PrimitiveFeature.cpp b/src/Mod/Part/App/PrimitiveFeature.cpp index 30fe04ba3..a0a669b48 100644 --- a/src/Mod/Part/App/PrimitiveFeature.cpp +++ b/src/Mod/Part/App/PrimitiveFeature.cpp @@ -35,6 +35,7 @@ # include # include # include +# include # include # include # include @@ -661,8 +662,9 @@ App::DocumentObjectExecReturn *Wedge::execute(void) BRepPrim_Wedge mkWedge(gp_Ax2(pnt,dir), xmin, ymin, zmin, z2min, x2min, xmax, ymax, zmax, z2max, x2max); - TopoDS_Shape resultShape = mkWedge.Shell(); - this->Shape.setValue(resultShape); + BRepBuilderAPI_MakeSolid mkSolid; + mkSolid.Add(mkWedge.Shell()); + this->Shape.setValue(mkSolid.Solid()); } catch (Standard_Failure) { Handle_Standard_Failure e = Standard_Failure::Caught();