Skip to content

Commit

Permalink
+ fixes #1922: occ exception during python shell.makeHalfSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 16, 2015
1 parent 79458a8 commit f5c363d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Part/App/TopoShapeShellPyImp.cpp
Expand Up @@ -188,7 +188,7 @@ PyObject* TopoShapeShellPy::makeHalfSpace(PyObject *args)

try {
Base::Vector3d pt = Py::Vector(pPnt,false).toVector();
BRepPrimAPI_MakeHalfSpace mkHS(TopoDS::Face(this->getTopoShapePtr()->_Shape), gp_Pnt(pt.x,pt.y,pt.z));
BRepPrimAPI_MakeHalfSpace mkHS(TopoDS::Shell(this->getTopoShapePtr()->_Shape), gp_Pnt(pt.x,pt.y,pt.z));
return new TopoShapeSolidPy(new TopoShape(mkHS.Solid()));
}
catch (Standard_Failure) {
Expand Down

0 comments on commit f5c363d

Please sign in to comment.