Directly create solid from Part.makeWedge

This commit is contained in:
wmayer 2012-02-03 15:59:10 +01:00
parent 67793c6c8d
commit a4f2a44dd2

View File

@ -596,8 +596,9 @@ static PyObject * makeWedge(PyObject *self, PyObject *args)
d.SetCoord(vec.x, vec.y, vec.z);
}
BRepPrim_Wedge mkWedge(gp_Ax2(p,d), xmin, ymin, zmin, z2min, x2min, xmax, ymax, zmax, z2max, x2max);
TopoDS_Shape resultShape = mkWedge.Shell();
return new TopoShapeShellPy(new TopoShape(resultShape));
BRepBuilderAPI_MakeSolid mkSolid;
mkSolid.Add(mkWedge.Shell());
return new TopoShapeSolidPy(new TopoShape(mkSolid.Solid()));
}
catch (Standard_DomainError) {
PyErr_SetString(PyExc_Exception, "creation of wedge failed");