EgtGraphics 1.6r9 :

- per Zmap si visualizzano anche gli spilloni.
This commit is contained in:
Dario Sassi
2016-06-13 07:10:54 +00:00
parent b2bdd55d63
commit deeb1eb5e7
2 changed files with 20 additions and 0 deletions
+20
View File
@@ -355,6 +355,26 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
pGraphics->AddTriangle( Tria, TFlags, TNrms) ;
}
pGraphics->EndTriangles() ;
// visualizzazione spilloni
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 ;
}
}
// se testo
else if ( nGeoType == EXT_TEXT) {