diff --git a/EgtGraphics.rc b/EgtGraphics.rc index eab89ac..96529f7 100644 Binary files a/EgtGraphics.rc and b/EgtGraphics.rc differ 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 ;