EgtExecutor :
- si passa il livello di debug a EGtGeomKernel - sostituito SQ_INFINITO a INFINITO * INFINITO.
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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() ;
|
||||
|
||||
Reference in New Issue
Block a user