diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index f64c577f03bb..cbe7a30016e9 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -30,7 +30,6 @@ # include # include # include -# include # include # include # include @@ -107,7 +106,8 @@ # include # include # if OCC_VERSION_HEX < 0x070600 -# include +# include +# include # endif # include @@ -4530,12 +4530,20 @@ static Standard_Boolean IsPlanar(const Adaptor3d_Surface& theS) const GeomAbs_SurfaceType aST = theS.GetType(); if(aST == GeomAbs_OffsetSurface) { +# if OCC_VERSION_HEX < 0x070600 return IsPlanar(theS.BasisSurface()->Surface()); +#else + return IsPlanar(*theS.BasisSurface()); +#endif } if(aST == GeomAbs_SurfaceOfExtrusion) { +# if OCC_VERSION_HEX < 0x070600 return IsLinear(theS.BasisCurve()->Curve()); +#else + return IsLinear(*theS.BasisCurve()); +#endif } if((aST == GeomAbs_BSplineSurface) || (aST == GeomAbs_BezierSurface)) diff --git a/src/Mod/Part/App/TopoShapeEx.cpp b/src/Mod/Part/App/TopoShapeEx.cpp index 36953653ebcc..16b0ead2e708 100644 --- a/src/Mod/Part/App/TopoShapeEx.cpp +++ b/src/Mod/Part/App/TopoShapeEx.cpp @@ -34,13 +34,14 @@ # include # include # include +# if OCC_VERSION_HEX < 0x070600 # include # include +# endif # include # include # include # include -# include # include # include # include @@ -208,6 +209,12 @@ FC_LOG_LEVEL_INIT("TopoShape",true,2); +#if OCC_VERSION_HEX >= 0x070600 +using Adaptor3d_HCurve = Adaptor3d_Curve; +using BRepAdaptor_HCurve = BRepAdaptor_Curve; +using BRepAdaptor_HCompCurve = BRepAdaptor_CompCurve; +#endif + using namespace Part; using namespace Data; namespace bio = boost::iostreams;