EgtGraphics 2.2a1 :
- aggiunta visualizzazione quotature.
This commit is contained in:
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user