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
+2 -2
View File
@@ -1398,7 +1398,7 @@ Milling::ProcessPath( int nPathId, int nPvId, int nClId)
// recupero il box del grezzo in globale
BBox3d b3Raw ;
if ( ! GetRawGlobBox( m_nPhase, nPathId, 0.5 * m_TParams.m_dDiam, b3Raw) || b3Raw.IsEmpty()) {
if ( ! GetRawGlobBox( m_nPhase, nPathId, 0.5 * m_TParams.m_dTDiam, b3Raw) || b3Raw.IsEmpty()) {
m_pMchMgr->SetLastError( 2303, "Error in Milling : Empty RawBox") ;
return false ;
}
@@ -1406,7 +1406,7 @@ Milling::ProcessPath( int nPathId, int nPvId, int nClId)
// recupero distanza da fondo dei grezzi interessati dal percorso
double dRbDist = 0 ;
if ( AreSameVectorApprox( vtExtr, Z_AX)) {
if ( ! GetDistanceFromRawBottom( m_nPhase, nCopyId, m_TParams.m_dDiam, dRbDist))
if ( ! GetDistanceFromRawBottom( m_nPhase, nCopyId, m_TParams.m_dTDiam, dRbDist))
return false ;
}