diff --git a/EXE_General.cpp b/EXE_General.cpp index e25d0d9..6be6a6f 100644 --- a/EXE_General.cpp +++ b/EXE_General.cpp @@ -71,6 +71,8 @@ ExeInit( int nDebug, const string& sLogFile, const string& sLogMsg) // assegno il livello di debug s_nDebugLev = max( nDebug, 0) ; + // lo passo alle DLL + SetEGkDebugLev( s_nDebugLev) ; // creo il logger generale s_pGenLog = new( nothrow) Logger( ( s_nDebugLev > 0 ? LL_DEBUG : LL_INFO), "EgtInterface") ; if ( s_pGenLog == nullptr) @@ -125,7 +127,7 @@ ExeInit( int nDebug, const string& sLogFile, const string& sLogMsg) // Info su gestori UserObj caricati if ( ExeGetDebugLevel() >= 1) { - STRVECTOR vsOuMgr ; + STRVECTOR vsOuMgr ; if ( USEROBJ_GETLIST( vsOuMgr)) { LOG_DBG_INFO( s_pGenLog, "UserObj Managers :") for ( size_t i = 0 ; i < vsOuMgr.size() ; ++ i) diff --git a/EXE_NstCreateFlatParts.cpp b/EXE_NstCreateFlatParts.cpp index 989ca26..f3fd798 100644 --- a/EXE_NstCreateFlatParts.cpp +++ b/EXE_NstCreateFlatParts.cpp @@ -530,7 +530,7 @@ CreateFlatPartsByRegions( int nLay) } } // cerco il testo contenuto almeno parzialmente e pił vicino al centro del pezzo - double dMinSqDist = INFINITO * INFINITO ; + double dMinSqDist = SQ_INFINITO ; int nMinJ = -1 ; for ( int j = 0 ; j < int( vTextIds.size()) ; ++ j) { if ( vTextIds[j] == GDB_ID_NULL) @@ -664,7 +664,7 @@ CreateFlatPartsByClosedCurves( void) Point3d ptPartCen ; b3Part.GetCenter( ptPartCen) ; // cerco il testo contenuto almeno parzialmente e pił vicino al centro del pezzo - double dMinSqDist = INFINITO * INFINITO ; + double dMinSqDist = SQ_INFINITO ; int nMinJ = -1 ; for ( int j = 0 ; j < int( vTextIds.size()) ; ++ j) { if ( vTextIds[j] == GDB_ID_NULL) diff --git a/EXE_NstPartNesting.cpp b/EXE_NstPartNesting.cpp index 260be8d..b1ac4bd 100644 --- a/EXE_NstPartNesting.cpp +++ b/EXE_NstPartNesting.cpp @@ -284,7 +284,7 @@ ExeCreateReferenceRegion( int nParentId, int nOutCrvId, bool bBottomUp) PL.GetLocalBBox( b3Box) ; // cerco i punti pił vicini ai quattro vertici (0=BL, 1=BR, 2=TR, 3=TL) double dU[4] = { -1, -1, -1, -1} ; - double dMinSqDist[4] = {INFINITO*INFINITO, INFINITO*INFINITO, INFINITO*INFINITO, INFINITO*INFINITO} ; + double dMinSqDist[4] = { SQ_INFINITO, SQ_INFINITO, SQ_INFINITO, SQ_INFINITO} ; Point3d ptVert[4] ; ptVert[0] = b3Box.GetMin() ; ptVert[2] = b3Box.GetMax() ;