EgtGraphics :
- ricompilazione con cambio codifica file a UTF-8.
This commit is contained in:
+9
-9
@@ -143,7 +143,7 @@ Scene::DrawGroup( const IGdbIterator& iIter, int nPass, const MdStMkCol& cParent
|
||||
Frame3d frFrame ;
|
||||
if ( ! iIter.GetGroupFrame( frFrame))
|
||||
return false ;
|
||||
// se non è identità, lo aggiungo sullo stack delle matrici MODELVIEW di OpenGL
|
||||
// se non è identità, lo aggiungo sullo stack delle matrici MODELVIEW di OpenGL
|
||||
bool bMatrix = ( frFrame.GetType() != Frame3d::TOP || ! frFrame.Orig().IsSmall()) ;
|
||||
if ( bMatrix) {
|
||||
glPushMatrix() ;
|
||||
@@ -174,7 +174,7 @@ Scene::DrawGroup( const IGdbIterator& iIter, int nPass, const MdStMkCol& cParent
|
||||
// recupero e aggiorno il colore dell'oggetto
|
||||
Color colObj = cParent.colObj ;
|
||||
pIter->GetMaterial( colObj) ;
|
||||
// se in modalità selezione, verifico sia selezionabile
|
||||
// se in modalità selezione, verifico sia selezionabile
|
||||
bool bSel = true ;
|
||||
if ( m_bSelect && UnselectableFind( pIter->GetId()))
|
||||
bSel = false ;
|
||||
@@ -258,7 +258,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
nCount += 1 ;
|
||||
}
|
||||
}
|
||||
// nuova modalità grafica solo per superfici e testi con molti triangoli o solidi Zmap
|
||||
// nuova modalità grafica solo per superfici e testi con molti triangoli o solidi Zmap
|
||||
const int N_MIN_TRIA_NEWWAY = 100 ;
|
||||
bool bNewWay = false ;
|
||||
if ( m_bNewWay) {
|
||||
@@ -283,7 +283,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
pGeoObj->SetObjGraphics( pGraphics) ;
|
||||
}
|
||||
|
||||
// se la grafica associata non è valida la ricalcolo
|
||||
// se la grafica associata non è valida la ricalcolo
|
||||
ObjEGrGraphics* pGraphics = GetObjEGrGraphics( pGeoObj) ;
|
||||
if ( ! pGraphics->IsValid()) {
|
||||
const double ANG_TOL_GRAPH_DEG = 15 ;
|
||||
@@ -431,7 +431,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
cCol[0] = siObj.colObj ;
|
||||
if ( ! iIter.GetCalcMaterial( mMat[0]))
|
||||
mMat[0].Set( m_colDef) ;
|
||||
// secondo materiale per parti modificate (tonalità spostata di +22.5 deg)
|
||||
// secondo materiale per parti modificate (tonalità spostata di +22.5 deg)
|
||||
cCol[1] = cCol[0] ;
|
||||
mMat[1] = mMat[0] ;
|
||||
HSV hsv = GetHSVFromColor( siObj.colObj) ;
|
||||
@@ -520,7 +520,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
cCol[0] = siObj.colObj ;
|
||||
if ( ! iIter.GetCalcMaterial( mMat[0]))
|
||||
mMat[0].Set( m_colDef) ;
|
||||
// secondo materiale per parti lavorate (tonalità spostata di +22.5 deg)
|
||||
// secondo materiale per parti lavorate (tonalità spostata di +22.5 deg)
|
||||
cCol[1] = cCol[0] ;
|
||||
mMat[1] = mMat[0] ;
|
||||
// se richiesto diverso
|
||||
@@ -536,7 +536,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
// Ciclo sui blocchi
|
||||
nCount = pZmap->GetBlockCount() ;
|
||||
for ( int i = 0 ; i < nCount ; ++ i) {
|
||||
// Se blocco non esistente o già aggiornato, vado oltre
|
||||
// Se blocco non esistente o già aggiornato, vado oltre
|
||||
if ( ! pGraphics->SetCurrent( ZMAP_COL * i) ||
|
||||
pZmap->GetBlockUpdatingCounter( i) <= pGraphics->GetCounter())
|
||||
continue ;
|
||||
@@ -729,7 +729,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
bool bSurf = (( nGeoType & ( GEO_SURF | GEO_VOLUME)) != 0) ;
|
||||
bool bGenSurf = ( bSurf || ( nGeoType == EXT_TEXT && m_nShowText == TXT_FILL && GetExtText( pGeoObj)->GetAuxSurf() != nullptr)) ;
|
||||
|
||||
// recupero il valore di opacità (solo per le superfici e i solidi può esserci trasparenza)
|
||||
// recupero il valore di opacità (solo per le superfici e i solidi può esserci trasparenza)
|
||||
int nAlpha = siObj.colObj.GetIntAlpha() ;
|
||||
|
||||
// salto in ogni caso le superfici e i solidi completamente trasparenti
|
||||
@@ -743,7 +743,7 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
return true ;
|
||||
}
|
||||
|
||||
// se shading e non modalità selezione
|
||||
// se shading e non modalità selezione
|
||||
bool bSurfSha = false ;
|
||||
if ( m_nShowMode == SM_SHADING && ! m_bSelect) {
|
||||
// in prima passata disegno solo le superfici opache e metto in un vettore quelle semitrasparenti
|
||||
|
||||
Reference in New Issue
Block a user