EgtMachKernel 1.8e6 :

- aggiunte GetMachiningStartPoint e GetMachiningEndPoint.
This commit is contained in:
Dario Sassi
2017-06-01 15:02:59 +00:00
parent 6c7a60b60a
commit 44a9bdadf6
5 changed files with 92 additions and 11 deletions
+32
View File
@@ -1043,3 +1043,35 @@ MachMgr::IsMachiningEmpty( void) const
// restituisco lo stato
return pMch->IsEmpty() ;
}
//----------------------------------------------------------------------------
bool
MachMgr::GetMachiningStartPoint( Point3d& ptStart) const
{
// recupero la lavorazione corrente
int nCurrMchId = GetCurrMachining() ;
if ( nCurrMchId == GDB_ID_NULL)
return false ;
// ne recupero il gestore
Machining* pMch = GetMachining( m_pGeomDB->GetUserObj( nCurrMchId)) ;
if ( pMch == nullptr)
return false ;
// restituisco il punto iniziale del primo percorso di lavorazione
return pMch->GetStartPoint( ptStart) ;
}
//----------------------------------------------------------------------------
bool
MachMgr::GetMachiningEndPoint( Point3d& ptEnd) const
{
// recupero la lavorazione corrente
int nCurrMchId = GetCurrMachining() ;
if ( nCurrMchId == GDB_ID_NULL)
return false ;
// ne recupero il gestore
Machining* pMch = GetMachining( m_pGeomDB->GetUserObj( nCurrMchId)) ;
if ( pMch == nullptr)
return false ;
// restituisco il punto finale dell'ultimo percorso di lavorazione
return pMch->GetEndPoint( ptEnd) ;
}