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
+11
View File
@@ -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) {