EgtGraphics 1.8j4 :
- aggiustamenti per modifiche a Plane3d.
This commit is contained in:
+2
-2
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user