diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index dff3343..166cf40 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/MachineCalc.cpp b/MachineCalc.cpp index 6f6b963..8430304 100644 --- a/MachineCalc.cpp +++ b/MachineCalc.cpp @@ -958,8 +958,8 @@ Machine::GetMyAngles( const Vector3d& vtDirT, const Vector3d& vtDirA, vtAx2.Invert() ; // calcolo secondo angolo di rotazione nStat = GetRotationComponent( vtDirHn, dCompTSuAxR1, vtAx1, vtAx2, dAngB1, dAngB2, bDet) ; - // se indeterminato con richiesta direzione ausiliaria esatta, ricalcolo con direzione aux - if ( nStat >= 1 && ! bDet && m_bSolChExact) { + // se indeterminato, provo ricalcolo con direzione aux + if ( nStat >= 1 && ! bDet) { // componente versore ausiliario desiderato su direzione primo asse rotante Vector3d vtSccDir ; if ( GetSccDir( m_nCalcSolCh, vtDirAn, vtSccDir)) { diff --git a/Milling.cpp b/Milling.cpp index ec3e6fd..3e8ede0 100644 --- a/Milling.cpp +++ b/Milling.cpp @@ -2804,7 +2804,7 @@ Milling::AddZigZagMilling( const ICurveComposite* pCompo, const Vector3d& vtTool else { bool bStartFeed = ( bOutStart || m_TParams.m_nType == TT_MILL_POLISHING) ; SetFeed( bStartFeed ? GetStartFeed() : GetTipFeed()) ; - if ( AddLinearMove( ptP1) == GDB_ID_NULL) + if ( ! SameAsCurrPos( ptP1) && AddLinearMove( ptP1) == GDB_ID_NULL) return false ; } }