From 3f38fd005753240ab952a0e1559a99f465c55f13 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 1 Jun 2018 17:02:27 +0200 Subject: [PATCH] do not use deprecated class in OCCT 7.3 --- src/Mod/Part/App/TopoShape.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index bf1aed935c..dcc4224768 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -41,7 +41,6 @@ # include # include # include -# include # include # include # include @@ -153,6 +152,9 @@ # include # include # include +#if OCC_VERSION_HEX < 0x070300 +# include +#endif #endif # include # include @@ -1627,8 +1629,12 @@ TopoDS_Shape TopoShape::oldFuse(TopoDS_Shape shape) const Standard_Failure::Raise("Base shape is null"); if (shape.IsNull()) Standard_Failure::Raise("Tool shape is null"); +#if OCC_VERSION_HEX < 0x070300 BRepAlgo_Fuse mkFuse(this->_Shape, shape); return mkFuse.Shape(); +#else + throw Standard_Failure("BRepAlgo_Fuse is deprecated since OCCT 7.3"); +#endif } TopoDS_Shape TopoShape::section(TopoDS_Shape shape) const