diff --git a/VolZmapVolume.cpp b/VolZmapVolume.cpp index 3558439..16af3bd 100644 --- a/VolZmapVolume.cpp +++ b/VolZmapVolume.cpp @@ -2438,7 +2438,7 @@ VolZmap::MillingGeneralMotionStep( const Point3d& ptPs, const Vector3d& vtDs, co const Point3d& ptPe, const Vector3d& vtDe, const Vector3d& vtAe) { // Flag per impostare vecchia (approssimativa) o nuova modalità di calcolo - constexpr bool OLD_LINEAR = true ; + constexpr bool OLD_LINEAR = false ; // Deve essere definito l'utensile corrente if ( m_nCurrTool < 0 || m_nCurrTool >= int( m_vTool.size())) @@ -2535,8 +2535,12 @@ VolZmap::MillingGeneralMotionStep( const Point3d& ptPs, const Vector3d& vtDs, co else n5AxisType = Move5Axis::NO_BASE_INTERS ; } - else if ( bAlong) - n5AxisType = Move5Axis::NO_BASE_INTERS ; + else if (bAlong) { + if (bAlongInters) + n5AxisType = Move5Axis::ACROSS; + else + n5AxisType = Move5Axis::NO_BASE_INTERS; + } vector ptLs( nStepCnt) ; vector ptLe( nStepCnt) ;