+ 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
This commit is contained in:
wmayer 2011-11-15 16:00:03 +00:00
parent 56e326d40d
commit 8b72179991

View File

@ -35,6 +35,7 @@
# include <BRepBuilderAPI_MakeFace.hxx>
# include <BRepBuilderAPI_MakeVertex.hxx>
# include <BRepBuilderAPI_MakeWire.hxx>
# include <BRepBuilderAPI_MakeSolid.hxx>
# include <BRepBuilderAPI_GTransform.hxx>
# include <gp_Circ.hxx>
# include <gp_GTrsf.hxx>
@ -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();