-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
#define _GEOMAlgo_ShapeAlgo_HeaderFile
+#include <Basics_OCCTVersion.hxx>
+
#include <Standard.hxx>
#include <Standard_Macro.hxx>
#include <TopoDS_Shape.hxx>
#include <Standard_Real.hxx>
-#include <Handle_IntTools_Context.hxx>
+#if OCC_VERSION_LARGE > 0x06070100
+ #include <IntTools_Context.hxx>
+#else
+ #include <BOPInt_Context.hxx>
+#endif
#include <GEOMAlgo_Algo.hxx>
//=======================================================================
//! Sets cashed geometrical tools <br>
Standard_EXPORT
+#if OCC_VERSION_LARGE > 0x06070100
void SetContext(const Handle(IntTools_Context)& theContext) ;
+#else
+ void SetContext(const Handle(BOPInt_Context)& theContext) ;
+#endif
//! Returns cashed geometrical tools <br>
Standard_EXPORT
- const Handle_IntTools_Context& Context() const;
+#if OCC_VERSION_LARGE > 0x06070100
+ const Handle(IntTools_Context)& Context() const;
+#else
+ const Handle(BOPInt_Context)& Context() const;
+#endif
Standard_EXPORT
void SetShape(const TopoDS_Shape& aS) ;
TopoDS_Shape myShape;
Standard_Real myTolerance;
TopoDS_Shape myResult;
- Handle_IntTools_Context myContext;
+#if OCC_VERSION_LARGE > 0x06070100
+ Handle(IntTools_Context) myContext;
+#else
+ Handle(BOPInt_Context) myContext;
+#endif
};
#endif