EgtMachKernel :
- modifiche per visualizzazione utensili con lavorazioni.
This commit is contained in:
@@ -47,6 +47,29 @@ Machine::GetHeadExitCount( const string& sHead) const
|
||||
return ( ( pHead != nullptr) ? pHead->GetExitCount() : 0) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int
|
||||
Machine::GetHeadExitPosDirAux( const string& sHead, int nExit, Point3d& ptPos, Vector3d& vtDir, Vector3d& vtAux) const
|
||||
{
|
||||
if ( m_pGeomDB == nullptr)
|
||||
return false ;
|
||||
// recupero testa
|
||||
int nHeadId = GetGroup( sHead) ;
|
||||
Head* pHead = GetHead( nHeadId) ;
|
||||
if ( pHead == nullptr)
|
||||
return false ;
|
||||
// recupero uscita
|
||||
int nExitId = m_pGeomDB->GetFirstNameInGroup( nHeadId, MCH_EXIT + ToString( nExit)) ;
|
||||
Exit* pExit = GetExit( nExitId) ;
|
||||
if ( pExit == nullptr)
|
||||
return false ;
|
||||
// assegno i dati
|
||||
ptPos = pExit->GetPos() ;
|
||||
vtDir = pExit->GetTDir() ;
|
||||
vtAux = pHead->GetADir() ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Machine::LoadTool( const string& sHead, int nExit, const string& sTool)
|
||||
|
||||
Reference in New Issue
Block a user