EgtMachKernel :

- piccola miglioria in calcolo elevazione tagli lama diritti.
This commit is contained in:
Dario Sassi
2016-07-22 15:10:13 +00:00
parent 9bdba6bcaa
commit 0b1a5adb8e
+4 -3
View File
@@ -1176,10 +1176,11 @@ Sawing::ProcessLine( const ICurve* pCrvP, const ICurveLine* pLineC, const ICurve
}
// aggiungo affondamento
pLine->Translate( - vtCorr * dDepth) ;
// calcolo elevazione (sui due bordi della striscia)
// calcolo elevazione (sui due bordi della striscia, leggermente allargata)
double dElev, dElev2 ;
Vector3d vtThick = vtTool * m_TParams.m_dThick ;
if ( ! GetElevation( m_nPhase, pLine->GetStart(), pLine->GetEnd(), vtCorr, dElev) ||
Vector3d vtSafe = vtTool * ( 10 * EPS_SMALL) ;
Vector3d vtThick = vtTool * ( m_TParams.m_dThick + 10 * EPS_SMALL) ;
if ( ! GetElevation( m_nPhase, pLine->GetStart() - vtSafe, pLine->GetEnd() - vtSafe, vtCorr, dElev) ||
! GetElevation( m_nPhase, pLine->GetStart() + vtThick, pLine->GetEnd() + vtThick, vtCorr, dElev2) ) {
LOG_INFO( GetEMkLogger(), "Error in Sawing : Entity GetElevation") ;
return false ;