EgtGraphics :
- modifiche per vettore nullo - snap endpoint anche su tip di vettore.
This commit is contained in:
+5
-3
@@ -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) {
|
||||
|
||||
@@ -250,6 +250,17 @@ Scene::FindSelectedSnapPoint( int nSnap, const Point3d& ptWin, int nW, int nH)
|
||||
m_vtLastSnapDir = pGV->GetVector() ;
|
||||
m_vtLastSnapDir.ToGlob( frEnt) ;
|
||||
}
|
||||
// recupero il punto tip
|
||||
Point3d ptTip= pGV->GetBase() + pGV->GetVector() ;
|
||||
ptTip.ToGlob( frEnt) ;
|
||||
if ( VerifySnapPoint( ptTip, ptWin, dMinSqDist)) {
|
||||
bFound = true ;
|
||||
m_nLastSnapId = nId ;
|
||||
m_ptLastSnapPnt = ptTip ;
|
||||
m_bLastSnapDirOk = true ;
|
||||
m_vtLastSnapDir = pGV->GetVector() ;
|
||||
m_vtLastSnapDir.ToGlob( frEnt) ;
|
||||
}
|
||||
}
|
||||
// se frame
|
||||
else if ( pGObj->GetType() == GEO_FRAME3D) {
|
||||
|
||||
Reference in New Issue
Block a user