+ fix build failure with occ 6.9.1

This commit is contained in:
wmayer 2015-11-05 19:40:34 +01:00
parent 39d6d68366
commit e8048a4968

View File

@ -38,7 +38,6 @@
# include <BRepExtrema_DistShapeShape.hxx>
#if OCC_VERSION_HEX >= 0x060801
# include <BRepExtrema_ShapeProximity.hxx>
# include <BRepExtrema_OverlappedSubShapes.hxx>
#endif
# include <BRepExtrema_SupportType.hxx>
# include <gp_Ax1.hxx>
@ -1700,6 +1699,9 @@ PyObject* _getSupportIndex(char* suppStr, TopoShape* ts, TopoDS_Shape suppShape)
PyObject* TopoShapePy::proximity(PyObject *args)
{
#if OCC_VERSION_HEX >= 0x060801
#if OCC_VERSION_HEX >= 0x060901
typedef BRepExtrema_MapOfIntegerPackedMapOfInteger BRepExtrema_OverlappedSubShapes;
#endif
PyObject* ps2;
Standard_Real tol = Precision::Confusion();
if (!PyArg_ParseTuple(args, "O!|d",&(TopoShapePy::Type), &ps2, &tol))
@ -1715,7 +1717,7 @@ PyObject* TopoShapePy::proximity(PyObject *args)
return 0;
}
BRepExtrema_ShapeProximity proximity;getTopoShapePtr()->_Shape;
BRepExtrema_ShapeProximity proximity;
proximity.LoadShape1 (s1);
proximity.LoadShape2 (s2);
if (tol > 0.0)