EgtMachKernel :

- in foratura corretta segnalazione di errore fuorviante
- in fresatura sistemata gestione direzioni inizio e fine con percorrenze in direzione inversa
- in link tra percorsi di lavorazione per robot aggiunta posizione iniziale a Zmax dopo inserimento di risalita a Zmax in percorso immediatamente precedente.
This commit is contained in:
Dario Sassi
2024-04-13 17:44:30 +02:00
parent 010f676234
commit 1f57693da8
3 changed files with 13 additions and 15 deletions
+6 -12
View File
@@ -2659,8 +2659,7 @@ Milling::AddZigZagMilling( const ICurveComposite* pCompo, const Vector3d& vtTool
// dati inizio entità
Point3d ptStart ;
pCurve->GetStartPoint( ptStart) ;
Vector3d vtStart = m_vtStartDir ;
// pCurve->GetStartDir( vtStart) ;
Vector3d vtStart = ( ! bInvert ? m_vtStartDir : -m_vtEndDir) ;
// determino elevazione su inizio attacco
double dStElev ;
if ( ! GetElevation( m_nPhase, ptStart, vtTool, GetRadiusForStartEndElevation(), vtTool, dStElev))
@@ -2866,8 +2865,7 @@ Milling::AddZigZagMilling( const ICurveComposite* pCompo, const Vector3d& vtTool
// dati fine entità
Point3d ptEnd ;
pCurve->GetEndPoint( ptEnd) ;
Vector3d vtEnd = m_vtEndDir ;
// pCurve->GetEndDir( vtEnd) ;
Vector3d vtEnd = ( ! bInvert ? m_vtEndDir : -m_vtStartDir) ;
// elevazione sul punto finale
double dEndElev ;
if ( ! GetElevation( m_nPhase, ptEnd, vtTool, GetRadiusForStartEndElevation(), vtTool, dEndElev))
@@ -3951,8 +3949,7 @@ Milling::AddSawZigZagMilling( const ICurveComposite* pCompo, const Vector3d& vtT
// dati inizio entità
Point3d ptStart ;
pCurve->GetStartPoint( ptStart) ;
Vector3d vtStart = m_vtStartDir ;
// pCurve->GetStartDir( vtStart) ;
Vector3d vtStart = ( ! bInvert ? m_vtStartDir : -m_vtEndDir) ;
// determino elevazione su inizio attacco
double dStElev ;
if ( j == 1) {
@@ -4030,8 +4027,7 @@ Milling::AddSawZigZagMilling( const ICurveComposite* pCompo, const Vector3d& vtT
// dati fine entità
Point3d ptEnd ;
pCurve->GetEndPoint( ptEnd) ;
Vector3d vtEnd = m_vtEndDir ;
// pCurve->GetEndDir( vtEnd) ;
Vector3d vtEnd = ( ! bInvert ? m_vtEndDir : -m_vtStartDir) ;
// elevazione sul punto finale
double dEndElev ;
if ( j == nStep) {
@@ -4137,8 +4133,7 @@ Milling::AddSawOneWayMilling( const ICurveComposite* pCompo, const Vector3d& vtT
// dati inizio entità
Point3d ptStart ;
pCurve->GetStartPoint( ptStart) ;
Vector3d vtStart = m_vtStartDir ;
// pCurve->GetStartDir( vtStart) ;
Vector3d vtStart = ( ! bReturn ? m_vtStartDir : -m_vtEndDir) ;
// determino elevazione su inizio attacco
double dStElev ;
if ( k == 1) {
@@ -4224,8 +4219,7 @@ Milling::AddSawOneWayMilling( const ICurveComposite* pCompo, const Vector3d& vtT
// dati fine entità
Point3d ptEnd ;
pCurve->GetEndPoint( ptEnd) ;
Vector3d vtEnd = m_vtEndDir ;
// pCurve->GetEndDir( vtEnd) ;
Vector3d vtEnd = ( ! bReturn ? m_vtEndDir : -m_vtStartDir) ;
// elevazione sul punto finale
double dEndElev ;
if ( j == nStep) {