EgtGraphics 1.6v6 :

- modifica per visualizzare spilloni tridexel di Zmap.
This commit is contained in:
Dario Sassi
2016-10-26 16:01:53 +00:00
parent f29be1ac04
commit 415f15f71c
2 changed files with 23 additions and 17 deletions
+23 -17
View File
@@ -360,24 +360,30 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
}
// visualizzazione spilloni
if ( m_nShowZmap == ZSM_LINES || m_nShowZmap == ZSM_BOTH) {
pGraphics->AddColor( BLUE) ;
POLYLINELIST lstPL ;
for ( int i = 0 ; ; ++ i) {
bool bOutBreak = false ;
for ( int j = 0 ; ; ++ j) {
lstPL.clear() ;
if ( pZmap->GetDexelLines( 1, j, i, lstPL)) {
for ( const auto& PL : lstPL)
pGraphics->AddPolyLine( PL) ;
}
else {
if ( j == 0)
bOutBreak = true ;
break ;
}
}
if ( bOutBreak)
break ;
for ( int k = 0 ; k < 3 ; ++ k) {
switch ( k) {
default : pGraphics->AddColor( BLUE) ; break ;
case 1 : pGraphics->AddColor( RED) ; break ;
case 2 : pGraphics->AddColor( GREEN) ; break ;
}
for ( int i = 0 ; ; ++ i) {
bool bOutBreak = false ;
for ( int j = 0 ; ; ++ j) {
lstPL.clear() ;
if ( pZmap->GetDexelLines( k, j, i, lstPL)) {
for ( const auto& PL : lstPL)
pGraphics->AddPolyLine( PL) ;
}
else {
if ( j == 0)
bOutBreak = true ;
break ;
}
}
if ( bOutBreak)
break ;
}
}
}
}