EgtMachKernel :

- in Postproc aggiunta variabile EMT.NDIR per normale al piano dell'arco (può non coincidere con il versore utensile, vedi spatolatuta nel marmo).
This commit is contained in:
Dario Sassi
2026-08-20 19:40:22 +02:00
parent 8e2429a17c
commit 227f0e6c51
3 changed files with 7 additions and 3 deletions
+5 -2
View File
@@ -517,7 +517,7 @@ Processor::ProcessClEnt( int nEntId, int nEntInd, int nClPathId, int nClPathInd,
Point3d ptMid( AxesEnd[0], AxesEnd[1], AxesEnd[2]) ;
ptMid.Rotate( pCamData->GetAxesCen(), pCamData->GetAxesNormDir(), - pCamData->GetAxesAngCen() / 2) ;
if ( ! OnArc( nEntId, nEntInd, nMove, AxesEnd,
pCamData->GetAxesCen(), ptMid, pCamData->GetAxesRad(), pCamData->GetAxesAngCen(),
pCamData->GetAxesCen(), ptMid, pCamData->GetAxesRad(), pCamData->GetAxesAngCen(), pCamData->GetAxesNormDir(),
pCamData->GetToolDir(), pCamData->GetCorrDir(), pCamData->GetBackAuxDir(),
pCamData->GetFeed(), pCamData->GetFlag(), pCamData->GetFlag2(), pCamData->GetIndex(),
pCamData->GetCorrType(), nMoveNext, AxesNext))
@@ -1164,7 +1164,7 @@ Processor::OnLinear( int nEntId, int nEntInd, int nMove, const DBLVECTOR& AxesEn
//----------------------------------------------------------------------------
bool
Processor::OnArc( int nEntId, int nEntInd, int nMove, const DBLVECTOR& AxesEnd,
const Point3d& ptCen, const Point3d& ptMid, double dRad, double dAngCen,
const Point3d& ptCen, const Point3d& ptMid, double dRad, double dAngCen, const Vector3d& vtNorm,
const Vector3d& vtTool, const Vector3d& vtCorr, const Vector3d& vtAux,
double dFeed, int nFlag, int nFlag2, int nIndex, int nCorr, int nMoveNext, const DBLVECTOR& AxesNext)
{
@@ -1194,6 +1194,8 @@ Processor::OnArc( int nEntId, int nEntInd, int nMove, const DBLVECTOR& AxesEnd,
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_RR, dRad) ;
// assegno il valore dell'angolo al centro
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_AC, dAngCen) ;
// assegno il valore del versore normale al piano di giacitura dell'arco
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_NDIR, vtNorm) ;
// assegno il valore del versore utensile
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_TDIR, vtTool) ;
// assegno il valore del versore correzione
@@ -1243,5 +1245,6 @@ Processor::ResetArcData( void)
bOk = bOk && m_pMachine->LuaResetGlobVar( GLOB_VAR + GVAR_M3) ;
bOk = bOk && m_pMachine->LuaResetGlobVar( GLOB_VAR + GVAR_RR) ;
bOk = bOk && m_pMachine->LuaResetGlobVar( GLOB_VAR + GVAR_AC) ;
bOk = bOk && m_pMachine->LuaResetGlobVar( GLOB_VAR + GVAR_NDIR) ;
return bOk ;
}