EgtGraphics 1.6g1 :

- modificati i parametri di visualizzazione delle curve.
This commit is contained in:
Dario Sassi
2015-07-05 17:54:48 +00:00
parent 12739890ec
commit 65d480d666
2 changed files with 3 additions and 2 deletions
+3 -2
View File
@@ -187,6 +187,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
// se la grafica associata non è valida la ricalcolo
ObjEGrGraphics* pGraphics = GetObjEGrGraphics( pGeoObj) ;
if ( ! pGraphics->IsValid()) {
const double ANG_TOL_GRAPH_DEG = 15 ;
// se vettore
if ( nGeoType == GEO_VECT3D) {
// recupero il vettore
@@ -238,7 +239,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
return false ;
// calcolo la grafica
PolyLine PL ;
pCurve->ApproxWithLines( 0.005, 5, ICurve::APL_STD, PL) ;
pCurve->ApproxWithLines( EPS_SMALL, ANG_TOL_GRAPH_DEG, ICurve::APL_STD, PL) ;
pGraphics->Clear() ;
pGraphics->AddColor( siObj.colObj) ;
pGraphics->AddPolyLine( PL) ;
@@ -315,7 +316,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
return false ;
// calcolo la grafica
POLYLINELIST lstPL ;
pTXT->ApproxWithLines( 0.01, 5, lstPL) ;
pTXT->ApproxWithLines( 10 * EPS_SMALL, ANG_TOL_GRAPH_DEG, lstPL) ;
pGraphics->Clear() ;
pGraphics->AddColor( siObj.colObj) ;
for ( const auto& PL : lstPL)