From 415f15f71c3c779f78eec7cbaefea137f7879ab2 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 26 Oct 2016 16:01:53 +0000 Subject: [PATCH] EgtGraphics 1.6v6 : - modifica per visualizzare spilloni tridexel di Zmap. --- EgtGraphics.rc | Bin 11612 -> 11612 bytes SceneGeom.cpp | 40 +++++++++++++++++++++++----------------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/EgtGraphics.rc b/EgtGraphics.rc index ae2e7d0e4cb821d2da993b06aac4d6a85365dd08..d508d22185da7e633d52b0382a8692a999a81947 100644 GIT binary patch delta 131 zcmcZ;bth`W4>ndK1|0^o&41bWnVHKN%qBDP=uTD;Iyd=(RNdwdZVP6({C=j%X_7fG bHJcTLnpkkif%I>_Ahivl7mL|q%5Gc$Uw$VR delta 131 zcmcZ;bth`W4>ndq1|0^&&41bWnVCx&3@0=4=uTD;Iyd=(RNdwdZVP6({C=j%X_7fG bHJcTLnpkkif%I>_Ahivl7mL|q%5Gc$QobhU diff --git a/SceneGeom.cpp b/SceneGeom.cpp index ea0bc15..11cd19b 100644 --- a/SceneGeom.cpp +++ b/SceneGeom.cpp @@ -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 ; + } } } }