Port to OCC 6.6

This commit is contained in:
wmayer
2013-05-25 13:30:01 +02:00
parent 1c8ddfb362
commit a53ee3e749
2 changed files with 14 additions and 0 deletions

View File

@@ -25,6 +25,9 @@
#include <BRepGProp.hxx>
#include <BRepTools.hxx>
#if OCC_VERSION_HEX >= 0x060600
#include <BRepClass3d.hxx>
#endif
#include <GProp_GProps.hxx>
#include <GProp_PrincipalProps.hxx>
#include <BRepBuilderAPI_MakeSolid.hxx>
@@ -178,7 +181,11 @@ Py::Object TopoShapeSolidPy::getOuterShell(void) const
TopoDS_Shell shell;
const TopoDS_Shape& shape = getTopoShapePtr()->_Shape;
if (!shape.IsNull() && shape.ShapeType() == TopAbs_SOLID)
#if OCC_VERSION_HEX >= 0x060600
shell = BRepClass3d::OuterShell(TopoDS::Solid(shape));
#else
shell = BRepTools::OuterShell(TopoDS::Solid(shape));
#endif
return Py::Object(new TopoShapeShellPy(new TopoShape(shell)),true);
}