From 056dcee5a37f40a6ebb3f77150ba4f9125273614 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 8 Dec 2015 10:16:23 +0000 Subject: [PATCH] EgtGraphics 1.6l1 : - aggiunta visualizzazione a spilloni di VolZmap. --- EgtGraphics.rc | Bin 11612 -> 11612 bytes SceneGeom.cpp | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/EgtGraphics.rc b/EgtGraphics.rc index 27fdc8edef47f21bae67ec37d0a9ff9e49d491b5..1677f1c0f6e075798ac49f5b57e529d1b242e156 100644 GIT binary patch delta 107 zcmcZ;bth`W4>m@l%?J4oGfkeLtTWj_l4J4*P8r6W$sYy(PQD;jx4DDcf*GtrpP4ad a^GCsrEN~u3&E^YI+aU5dO%PLd;{pH%xhb{) delta 107 zcmcZ;bth`W4>m@_%?J4oGfkeLtTWj_l4J4*P8r7R$sYy(PQD;jx4DDcf*GtrpP4ax a^GCsrEN~u3&E^YI+aU5dO%PLd;{pH#{VA>h diff --git a/SceneGeom.cpp b/SceneGeom.cpp index cf74533..afa1abf 100644 --- a/SceneGeom.cpp +++ b/SceneGeom.cpp @@ -28,6 +28,7 @@ #include "/EgtDev/Include/EGkCurveComposite.h" #include "/EgtDev/Include/EGkSurfTriMesh.h" #include "/EgtDev/Include/EGkSurfFlatRegion.h" +#include "/EgtDev/Include/EGkVolZmap.h" #include "/EgtDev/Include/EGkExtText.h" #include "/EgtDev/Include/EGkGdbFunct.h" @@ -317,6 +318,34 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj) } pGraphics->EndTriangles() ; } + // se Zmap + else if ( nGeoType == VOL_ZMAP) { + // recupero il solido Zmap + const IVolZmap* pZmap = GetVolZmap( pGeoObj) ; + if ( pZmap == nullptr) + return false ; + // calcolo la grafica + pGraphics->Clear() ; + pGraphics->AddColor( BLUE) ; + POLYLINELIST lstPL ; + for ( int i = 0 ; ; ++ i) { + bool bOutBreak = false ; + for ( int j = 0 ; ; ++ j) { + 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) { // recupero il testo