From 985cdef24802f0f3e008cc59ece1742834621758 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 28 Apr 2010 07:14:35 +0000 Subject: [PATCH] Additional patch for 0020603 to fix unstable behavior (bring Standard_Version.hxx to the top and change #ifdef clause) --- src/NMTTools/NMTTools_PaveFiller_2.cxx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/NMTTools/NMTTools_PaveFiller_2.cxx b/src/NMTTools/NMTTools_PaveFiller_2.cxx index 1ccd581d2..438e75255 100644 --- a/src/NMTTools/NMTTools_PaveFiller_2.cxx +++ b/src/NMTTools/NMTTools_PaveFiller_2.cxx @@ -25,6 +25,9 @@ // Author: Peter KURNEV // // + +#include + #include #include @@ -54,8 +57,6 @@ #include #include -#include - // Modified Thu Sep 14 14:35:18 2006 // Contribution of Samtech www.samcef.com BEGIN #include @@ -69,9 +70,9 @@ static // In OCCT6.3.0sp9 is changed a signature of IntTools_Context::ComputeVE() method #ifdef OCC_VERSION_SERVICEPACK -#if (OCC_VERSION_MAJOR << 24 | OCC_VERSION_MINOR << 16 | OCC_VERSION_MAINTENANCE << 8 | OCC_VERSION_SERVICEPACK) > 0x06030008 -#define OCCT_6_3_0_sp_9 -#endif +#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 //======================================================================= @@ -86,7 +87,7 @@ void NMTTools_PaveFiller::PerformVE() Standard_Integer n1, n2, anIndexIn, aFlag, aWhat; Standard_Integer aWith, aNbVEs, aBlockLength, iSDV, nV1; Standard_Real aT; -#ifdef OCCT_6_3_0_sp_9 +#if OCC_VERSION_LARGE > 0x06030008 Standard_Boolean bToUpdateVertex; Standard_Real aDist; #endif @@ -160,7 +161,7 @@ void NMTTools_PaveFiller::PerformVE() } // //modified by NIZNHY-PKV Mon Dec 28 08:58:05 2009f -#ifdef OCCT_6_3_0_sp_9 +#if OCC_VERSION_LARGE > 0x06030008 aFlag=myContext.ComputeVE (aV1, aE2, aT, bToUpdateVertex, aDist); #else aFlag=myContext.ComputeVE (aV1, aE2, aT); @@ -192,7 +193,7 @@ void NMTTools_PaveFiller::PerformVE() myIP->Add(aWhat, aWith, Standard_True, NMTDS_TI_VE); // //modified by NIZNHY-PKV Mon Dec 28 09:00:54 2009f -#ifdef OCCT_6_3_0_sp_9 +#if OCC_VERSION_LARGE > 0x06030008 if (bToUpdateVertex) { BRep_Builder aBB; // -- 2.39.2