From a7bc25e72361d93f7c7792afa7b6bc2d77c4e59a Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 30 Dec 2019 09:25:46 +0000 Subject: [PATCH] EgtGraphics 2.2a1 : - aggiunta visualizzazione quotature. --- EgtGraphics.rc | Bin 11612 -> 11604 bytes SceneGeom.cpp | 15 +++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/EgtGraphics.rc b/EgtGraphics.rc index eab89ac93f76b491b9ba2517d1803da458842021..96529f784d1e038bacfb8c1c105ac0e922e4cb57 100644 GIT binary patch delta 275 zcmcZ;btP)UCpJza1|0@N5T5*(O_R}R^F^_#Op_-l>r6I~Zw?S~V%)remx~dLQU94RwQs&H6w3(L>%&B>w!KpE i2yIr3lOM2hY%Y_&d*@d{3o}0|3woNp1iD diff --git a/SceneGeom.cpp b/SceneGeom.cpp index f954bd7..0f9e8f1 100644 --- a/SceneGeom.cpp +++ b/SceneGeom.cpp @@ -29,6 +29,7 @@ #include "/EgtDev/Include/EGkSurfFlatRegion.h" #include "/EgtDev/Include/EGkVolZmap.h" #include "/EgtDev/Include/EGkExtText.h" +#include "/EgtDev/Include/EGkExtDimension.h" #include "/EgtDev/Include/EGkGdbFunct.h" #include "/EgtDev/Include/EGnStringUtils.h" #include "/EgtDev/Include/EgtNumUtils.h" @@ -493,6 +494,20 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj) for ( const auto& PL : lstPL) pGraphics->AddPolyLine( PL) ; } + // se quota + else if ( nGeoType == EXT_DIMENSION) { + // recupero la quota + const IExtDimension* pDim = GetExtDimension( pGeoObj) ; + if ( pDim == nullptr) + return false ; + // calcolo la grafica + POLYLINELIST lstPL ; + pDim->ApproxWithLines( 10 * EPS_SMALL, ANG_TOL_GRAPH_DEG, lstPL) ; + pGraphics->Clear() ; + pGraphics->AddColor( siObj.colObj) ; + for ( const auto& PL : lstPL) + pGraphics->AddPolyLine( PL) ; + } // se esiste parte custom if ( pUserObj != nullptr) { POLYLINELIST lstPL ;