EgtGeomKernel :
- correzione in Zmap per creazione da solidi con volume negativo.
This commit is contained in:
+9
-2
@@ -1346,7 +1346,12 @@ VolZmap::SetToModifyDexelBlocks( int nGrid, int nDex, int nInt)
|
||||
bool
|
||||
VolZmap::IsBox( void)
|
||||
{
|
||||
for ( int nMap = 0 ; nMap < 3 ; ++ nMap) {
|
||||
// se non tridexel, non posso stabilire con il metodo seguente se è un box
|
||||
if ( m_nMapNum == 1)
|
||||
return false ;
|
||||
// analisi dei tridexel
|
||||
bool bFound = true ;
|
||||
for ( int nMap = 0 ; nMap < m_nMapNum ; ++ nMap) {
|
||||
double dMinZ = m_dMaxZ[nMap] ;
|
||||
double dMaxZ = m_dMinZ[nMap] ;
|
||||
for ( int n = 0 ; n < int( m_nDim[nMap]) ; ++ n) {
|
||||
@@ -1365,8 +1370,10 @@ VolZmap::IsBox( void)
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( dMaxZ < dMinZ)
|
||||
bFound = false ;
|
||||
}
|
||||
return true ;
|
||||
return bFound ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user