EgtMachKernel :

- prime modifiche per gestione aggregato da sotto.
This commit is contained in:
Dario Sassi
2017-01-23 17:29:20 +00:00
parent f5372b6f08
commit 5849ad4f41
6 changed files with 147 additions and 6 deletions
+30
View File
@@ -137,6 +137,36 @@ Machine::GetCurrTableDeltaRef1( Vector3d& vtDelta1) const
return true ;
}
//----------------------------------------------------------------------------
bool
Machine::GetCurrTableIsTilting( bool& bTilting) const
{
// default
bTilting = false ;
// verifico esistenza tavola
if ( m_nCalcTabId == GDB_ID_NULL)
return false ;
// recupero gli eventuali assi rotanti della tavola
int nTParId = m_pGeomDB->GetParentId( m_nCalcTabId) ;
if ( nTParId == GDB_ID_NULL)
return false ;
while ( IsAxisGroup( nTParId)) {
// recupero il gestore dell'asse
Axis* pAx = GetAxis( nTParId) ;
if ( pAx == nullptr)
return false ;
// verifico se asse rotante orizzontale
if ( pAx->GetType() == MCH_AT_ROTARY && abs( pAx->GetDir().z) < EPS_SMALL) {
bTilting = true ;
return true ;
}
// risalgo lungo la catena
nTParId = m_pGeomDB->GetParentId( nTParId) ;
}
return true ;
}
//----------------------------------------------------------------------------
bool
Machine::SetCurrTool( const string& sTool, const string& sHead, int nExit)