EgtGraphics :

- modifiche per vettore nullo
- snap endpoint anche su tip di vettore.
This commit is contained in:
Dario Sassi
2015-05-31 14:05:58 +00:00
parent 972d5c1e47
commit a4582b3fc2
2 changed files with 16 additions and 3 deletions
+5 -3
View File
@@ -191,11 +191,13 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
if ( pVector == nullptr)
return false ;
// calcolo la grafica
PolyLine PL ;
pVector->GetDrawWithArrowHead( 0.1, 10, PL) ;
pGraphics->Clear() ;
pGraphics->AddColor( siObj.colObj) ;
pGraphics->AddPolyLine( PL) ;
PolyLine PL ;
if ( pVector->GetDrawWithArrowHead( 0.1, 10, PL))
pGraphics->AddPolyLine(PL) ;
else
pGraphics->AddPoint( pVector->GetBase()) ;
}
// se punto
else if ( nGeoType == GEO_PNT3D) {