From deeb1eb5e781b130092f30cd729defe657ef937a Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 13 Jun 2016 07:10:54 +0000 Subject: [PATCH] EgtGraphics 1.6r9 : - per Zmap si visualizzano anche gli spilloni. --- EgtGraphics.rc | Bin 11612 -> 11612 bytes SceneGeom.cpp | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/EgtGraphics.rc b/EgtGraphics.rc index 2e5283e607085b35cde7161f4ea7249bc7ecae28..b14c9a3333bceab46e46bfaf22dea74987557f3d 100644 GIT binary patch delta 107 zcmcZ;bth`WA2vqI&41YhnHeo7GxF$8RuDQj`GQp4<_>Nfpb$`IKhxwi$vlYcW(A=( W77S64p3N7ec0tr*m?Wm`#svWDcO%{a delta 107 zcmcZ;bth`WA2vqw&41YhnHkL|GxF$8RuDQj`GQp4<_>Nfpb$`IKhxwi$vlYcW(A=( W77S64p3N7ec0tr*m?Wm`#svW9-y_Zd diff --git a/SceneGeom.cpp b/SceneGeom.cpp index a3d4447..f8c3f9b 100644 --- a/SceneGeom.cpp +++ b/SceneGeom.cpp @@ -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) {