EgtGraphics 1.9l4 :

- fabs sostituito da abs
- aggiunto disegno asse Z+ in riferimento griglia.
This commit is contained in:
Dario Sassi
2018-12-27 11:20:33 +00:00
parent 6347e9d7d4
commit 49e4839934
7 changed files with 17 additions and 13 deletions
+4 -4
View File
@@ -90,7 +90,7 @@ Scene::GetGridSnapPointZ( bool bSketch, const Point3d& ptWin, const Point3d& ptG
// determino l'intersezione della linea di mira con il piano di elevazione
double dDenom = vtLine * vtNorm ;
if ( fabs( dDenom) < COS_ORTO_ANG_SMALL)
if ( abs( dDenom) < COS_ORTO_ANG_SMALL)
return false ;
double dU = ( ( ptGrid - ptLine) * vtNorm) / dDenom ;
Point3d ptNear = ptLine + dU * vtLine ;
@@ -119,7 +119,7 @@ Scene::FindGridSnapPoint( bool bSketch, const Point3d& ptWin)
// determino l'intersezione di questa linea con il piano della griglia
double dDenom = vtLine * frGrid.VersZ() ;
if ( fabs( dDenom) < COS_ORTO_ANG_SMALL)
if ( abs( dDenom) < COS_ORTO_ANG_SMALL)
return false ;
double dU = ( ( frGrid.Orig() - ptLine) * frGrid.VersZ()) / dDenom ;
m_ptLastSnapPnt = ptLine + dU * vtLine ;
@@ -499,7 +499,7 @@ Scene::AdjustForCurveExtr( const Point3d& ptWin, const Frame3d& frEnt, const ICu
double dTh ;
Vector3d vtExtr ;
if ( ! pCrv->GetExtrusion( vtExtr) || vtExtr.IsSmall() ||
! pCrv->GetThickness( dTh) || fabs( dTh) < EPS_SMALL)
! pCrv->GetThickness( dTh) || abs( dTh) < EPS_SMALL)
return false ;
vtExtr *= dTh ;
@@ -1005,7 +1005,7 @@ Scene::GetPlaneSnapPoint( const Point3d& ptWin, const Plane3d& plPlane, Point3d&
// determino l'intersezione di questa linea con il piano
double dDenom = vtLine * plPlane.GetVersN() ;
if ( fabs( dDenom) < COS_ORTO_ANG_ZERO)
if ( abs( dDenom) < COS_ORTO_ANG_ZERO)
return false ;
double dU = ( plPlane.GetDist() - ( ptLine - ORIG) * plPlane.GetVersN()) / dDenom ;
ptSel = ptLine + dU * vtLine ;