EgtMachKernel 2.2c1 :

- in Milling modificato riconoscimento percorso chiuso per cambio inizio (per evitare percorsi sovrapposti di pulizia spigoli)
- in Milling, Pocketing, Mortising e Chiseling corretto cambio affondamento che supera l'elevazione
- in gestione utensili aggiunte funzioni SetCurrToolValInNotes, RemoveCurrToolValInNotes e GetCurrToolValInNotes.
This commit is contained in:
Dario Sassi
2020-03-07 08:59:15 +00:00
parent c5f0bc1034
commit 82f3d1a5d8
9 changed files with 235 additions and 84 deletions
+3 -3
View File
@@ -1476,7 +1476,7 @@ Milling::ProcessPath( int nPathId, int nPvId, int nClId)
Vector3d vtStart, vtEnd ;
pCompo->GetStartDir( vtStart) ;
pCompo->GetEndDir( vtEnd) ;
if ( ! AreSameVectorApprox( vtStart, vtEnd)) {
if ( ! AreSameOrOppositeVectorApprox( vtStart, vtEnd)) {
bool bAngCCW = ( ( vtEnd ^ vtStart) * vtTool > 0.0) ;
if ( m_Params.m_dOverlap > EPS_SMALL ||
m_Params.m_nWorkSide == MILL_WS_CENTER ||
@@ -1677,7 +1677,7 @@ Milling::ProcessPath( int nPathId, int nPvId, int nClId)
string sInfo = "Warning in Milling : machining depth (" + ToString( dElev, 1) +
") bigger than MaxMaterial (" + ToString( m_TParams.m_dMaxMat, 1) + ")" ;
m_pMchMgr->SetWarning( 2358, sInfo) ;
dDepth = m_TParams.m_dMaxMat - max( dThick, 0.0) ;
dDepth -= dElev - m_TParams.m_dMaxMat ;
dElev = m_TParams.m_dMaxMat ;
}
}
@@ -1698,7 +1698,7 @@ Milling::ProcessPath( int nPathId, int nPvId, int nClId)
string sInfo = "Warning in Milling : machining depth (" + ToString( dElev, 1) +
") bigger than MaxDepth (" + ToString( dMaxDepth, 1) + ")" ;
m_pMchMgr->SetWarning( 2358, sInfo) ;
dDepth -= ( dElev - dMaxDepth) ;
dDepth -= dElev - dMaxDepth ;
dElev = dMaxDepth ;
}
}