EgtGraphics 1.8j4 :

- aggiustamenti per modifiche a Plane3d.
This commit is contained in:
Dario Sassi
2017-10-16 07:57:24 +00:00
parent ab03269aec
commit df22d9ebf1
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -975,10 +975,10 @@ Scene::GetPlaneSnapPoint( const Point3d& ptWin, const Plane3d& plPlane, Point3d&
Vector3d vtLine = - m_vtDirCamera ;
// determino l'intersezione di questa linea con il piano
double dDenom = vtLine * plPlane.vtN ;
double dDenom = vtLine * plPlane.GetVersN() ;
if ( fabs( dDenom) < COS_ORTO_ANG_ZERO)
return false ;
double dU = ( plPlane.dDist - ( ptLine - ORIG) * plPlane.vtN) / dDenom ;
double dU = ( plPlane.GetDist() - ( ptLine - ORIG) * plPlane.GetVersN()) / dDenom ;
ptSel = ptLine + dU * vtLine ;
return true ;
}