EgtMachKernel :

- correzioni a calcolo elevazione per percorsi di lavoro appena fuori dal grezzo
- correzioni a recupero grezzo per percorsi di lavoro appena fuori dal grezzo.
This commit is contained in:
Dario Sassi
2018-10-05 14:04:38 +00:00
parent 50ff73a757
commit 42ec369b8f
5 changed files with 15 additions and 12 deletions
+7 -4
View File
@@ -34,6 +34,9 @@
using namespace std ;
//----------------------------------------------------------------------------
const double MAX_DIST_RAW = 200.0 ;
//----------------------------------------------------------------------------
bool
Operation::SetOwner( int nId, IGeomDB* pGDB)
@@ -124,8 +127,8 @@ Operation::GetElevation( int nPhase, const Point3d& ptP,
else if ( Info.dCosDN > - COS_ORTO_ANG_ZERO) {
dElev = min( dElev, Info.dU) ;
}
// se altrimenti è la prima ed entra, salto tutto
else if ( i == 0 && Info.dCosDN < - COS_ORTO_ANG_ZERO)
// se altrimenti è la prima, distante ed entra, salto tutto
else if ( i == 0 && Info.dU > MAX_DIST_RAW && Info.dCosDN < - COS_ORTO_ANG_ZERO)
break ;
}
}
@@ -199,8 +202,8 @@ Operation::GetElevation( int nPhase, const Point3d& ptP1, const Point3d& ptP2,
else if ( Info.dCosDN > - COS_ORTO_ANG_ZERO) {
dElevP = min( dElevP, Info.dU) ;
}
// se altrimenti è la prima ed entra, salto tutto
else if ( i == 0 && Info.dCosDN < - COS_ORTO_ANG_ZERO)
// se altrimenti è la prima, distante ed entra, salto tutto
else if ( i == 0 && Info.dU > MAX_DIST_RAW && Info.dCosDN < - COS_ORTO_ANG_ZERO)
break ;
}
}