From b083dabc6be6683ba43efb3b92567f30db2f0888 Mon Sep 17 00:00:00 2001 From: Daniele Bariletti Date: Wed, 24 Sep 2025 09:35:52 +0200 Subject: [PATCH 1/2] EgtGeomKernel : - correzione piccolo errore --- VolZmapVolume.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VolZmapVolume.cpp b/VolZmapVolume.cpp index 5a86031..3558439 100644 --- a/VolZmapVolume.cpp +++ b/VolZmapVolume.cpp @@ -863,6 +863,8 @@ GetCylMoveRotBBox( const Point3d& ptP1, const Point3d& ptP2, const Vector3d& vtV Vector3d vtDirTop = ptP2 - ptP1 ; Vector3d vtDirTip = ptP2T - ptP1T ; + vtDirTop.Normalize() ; + vtDirTip.Normalize() ; // determino i punti laterali del top e del bottom(tip), nella posizione di partenza Vector3d vtAuxTopS = vtV1 ^ vtDirTop ; From 40b6da6b449ee4c1efe9b27ef0ba54af914ea94d Mon Sep 17 00:00:00 2001 From: Daniele Bariletti Date: Wed, 24 Sep 2025 09:46:02 +0200 Subject: [PATCH 2/2] EgtGeomKernel : - correzione selezione caso VM5assi. --- VolZmapVolume.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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) ;