EgtMachKernel 1.6r1 :

- in SplitFlatRawPartW se c'è curva di kerf si splitta e si riporta nei nuovi grezzi
- in Simulator migliorata gestione Home e Stop, corretto posizione precedente degli assi al cambio utensile/testa.
This commit is contained in:
Dario Sassi
2016-05-12 15:27:25 +00:00
parent b8965da858
commit 31b4099d0f
8 changed files with 109 additions and 41 deletions
+6 -7
View File
@@ -37,8 +37,6 @@ Generator::Generator( void)
m_pMchMgr = nullptr ;
m_pGeomDB = nullptr ;
m_pMachine = nullptr ;
m_sPrevTool.clear() ;
m_sTool.clear() ;
m_AxesName.reserve( 8) ;
m_AxesVal.reserve( 8) ;
}
@@ -60,6 +58,7 @@ Generator::Init( MachMgr* pMchMgr)
m_pMchMgr = pMchMgr ;
m_pGeomDB = m_pMchMgr->GetGeomDB() ;
m_pMachine = m_pMchMgr->GetCurrMachine() ;
m_sPrevTool.clear() ;
m_sTool.clear() ;
return true ;
}
@@ -196,6 +195,7 @@ Generator::ProcessDisposition( int nOpId, int nOpInd)
else
break ;
}
bool bOk = true ;
// Se disposizione con movimenti macchina
if ( ! pDisp->IsEmpty()) {
@@ -219,7 +219,6 @@ Generator::ProcessDisposition( int nOpId, int nOpInd)
return false ;
}
// Ciclo su tutti i percorsi CL della disposizione
bool bOk = true ;
int nClPathInd = 0 ;
int nClId = m_pGeomDB->GetFirstNameInGroup( nOpId, MCH_CL) ;
int nClPathId = m_pGeomDB->GetFirstGroupInGroup( nClId) ;
@@ -234,10 +233,9 @@ Generator::ProcessDisposition( int nOpId, int nOpInd)
}
// Emetto fine disposizione
if ( ! OnDispositionEnd())
return false ;
bOk = bOk && OnDispositionEnd() ;
return true ;
return bOk ;
}
//----------------------------------------------------------------------------
@@ -537,8 +535,9 @@ Generator::OnRawMoveData( int nRawId, int RawMoveInd, int nType, const Point3d&
bool
Generator::OnToolSelect( void)
{
// assegno il nome dell'utensile
bool bOk = m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_TOOL, m_sTool) ;
// assegno il nome degli assi
bool bOk = true ;
int nNumAxes = int( m_AxesName.size()) ;
for ( int i = 1 ; i <= MAX_AXES ; ++ i) {
if ( i <= nNumAxes)