EgtMachKernel :

- correzione per gestire archi su macchine con assi rotanti su tavola.
This commit is contained in:
Dario Sassi
2020-09-22 07:48:13 +00:00
parent 648d080090
commit 61d0c583e8
5 changed files with 38 additions and 1 deletions
+3 -1
View File
@@ -1510,7 +1510,9 @@ Operation::CalculateClPathAxesValues( int nClPathId, int nLinAxes, int nRotAxes,
if ( pCurve->GetType() == CRV_ARC) {
ICurveArc* pArc = GetCurveArc( pCurve) ;
// verifico il piano
if ( pArc->GetNormVersor() * pCamData->GetNormDir() < 0)
Vector3d vtRef ;
m_pMchMgr->GetCalcPartDirFromAngles( pCamData->GetNormDir(), vAngEnd, vtRef) ;
if ( pArc->GetNormVersor() * vtRef < 0)
pArc->InvertN() ;
// assegno il centro e il raggio di questo arco ai dati cam
pCamData->SetAxesCen( pArc->GetCenter()) ;