Correzione errori e migliorie a virtual milling
This commit is contained in:
+6
-6
@@ -844,7 +844,7 @@ VolZmap::UpdateTripleMapGraphics( void) const
|
||||
VecTriHold.resize( m_nNumBlock) ;
|
||||
|
||||
// Ciclo sui blocchi per eliminare le slice fra blocchi da aggiornare
|
||||
for ( int t = 0 ; t < m_nNumBlock ; ++ t) {
|
||||
for ( int t = 0 ; t < m_nNumBlock ; ++ t) {
|
||||
for ( auto it = m_SliceXY[t].begin() ; it != m_SliceXY[t].end() ;) {
|
||||
int nSlIJK[3] ;
|
||||
if ( GetVoxIJKFromN( it->first, nSlIJK[0], nSlIJK[1], nSlIJK[2])) {
|
||||
@@ -1083,7 +1083,7 @@ VolZmap::ExtMarchingCubes( int nBlock, VoxelContainer& vVox) const
|
||||
|
||||
// Flag di regolarità dei campi scalare e vettoriale
|
||||
bool bReg = true ;
|
||||
|
||||
|
||||
// Ciclo sui segmenti
|
||||
for ( int EdgeIndex = 0 ; EdgeIndex < 12 ; ++ EdgeIndex) {
|
||||
// Se il segmento non attraversa la superficie passo al successivo
|
||||
@@ -3984,13 +3984,13 @@ VolZmap::IsAVoxelOnBoundary( const int nLimits[], const int nIJK[], int nDeltaIn
|
||||
-- nDeltaIndex[0] ;
|
||||
else if ( nIJK[0] == nLimits[1] - 1)
|
||||
++ nDeltaIndex[0] ;
|
||||
if ( nIJK[0] == nLimits[0])
|
||||
if ( nIJK[1] == nLimits[2])
|
||||
-- nDeltaIndex[1];
|
||||
else if ( nIJK[0] == nLimits[1] - 1)
|
||||
else if ( nIJK[1] == nLimits[3] - 1)
|
||||
++ nDeltaIndex[1];
|
||||
if ( nIJK[0] == nLimits[0])
|
||||
if ( nIJK[2] == nLimits[4])
|
||||
-- nDeltaIndex[2];
|
||||
else if ( nIJK[0] == nLimits[1] - 1)
|
||||
else if ( nIJK[2] == nLimits[5] - 1)
|
||||
++ nDeltaIndex[2];
|
||||
return ( nDeltaIndex[0] != 0 || nDeltaIndex[1] != 0 || nDeltaIndex[2] != 0) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user