From: dkv Date: Sat, 13 Nov 2010 08:32:29 +0000 (+0000) Subject: porting to OOCT 6.4.0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=852e172e7330f8cade0553491f8fbf176725676c;p=plugins%2Fblsurfplugin.git porting to OOCT 6.4.0 --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 7e679fa..825a76c 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -90,6 +90,12 @@ extern "C"{ // #include #include +#ifdef OCC_VERSION_SERVICEPACK +#define OCC_VERSION_LARGE (OCC_VERSION_MAJOR << 24 | OCC_VERSION_MINOR << 16 | OCC_VERSION_MAINTENANCE << 8 | OCC_VERSION_SERVICEPACK) +#else +#define OCC_VERSION_LARGE (OCC_VERSION_MAJOR << 24 | OCC_VERSION_MINOR << 16 | OCC_VERSION_MAINTENANCE << 8) +#endif + /* ================================== * =========== PYTHON ============== * ==================================*/ @@ -1876,7 +1882,11 @@ void BLSURFPlugin_BLSURF::BRepClass_FaceClassifierPerform(BRepClass_FaceClassif if(myExtrem.IsDone()) { nbv = myExtrem.NbExt(); for (Standard_Integer i = 1; i <= nbv; i++) { +#if OCC_VERSION_LARGE >= 0x06030100 + Standard_Real d = Sqrt(myExtrem.SquareDistance(i)); +#else Standard_Real d = myExtrem.Value(i); +#endif d = Abs(d); if(d <= MaxDist) { MaxDist = d;