From 6fe2f67083767436bbef7a7df44b686f23d5b3e9 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 24 Sep 2018 05:35:08 +0000 Subject: [PATCH] EgtGeomKernel : - correzioni a Zmap su taglio spilloni. --- VolZmapVolume.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/VolZmapVolume.cpp b/VolZmapVolume.cpp index cb14122..a4da3a0 100644 --- a/VolZmapVolume.cpp +++ b/VolZmapVolume.cpp @@ -642,11 +642,8 @@ VolZmap::MillingStep( const Point3d& ptPs, const Vector3d& vtDs, const Vector3d& // Direzione utensile costante: pura traslazione if ( AreSameVectorApprox( vtLs[i], vtLe[i])) { - // Proiezione dei vettori sulle rispettive griglie - Vector3d vtLsXY( vtLs[i].x, vtLs[i].y, 0) ; - // Versore utensile parallelo all'asse Z (coincide con spillone) - if ( vtLsXY.SqLen() < EPS_SMALL * EPS_SMALL) { + if ( vtLs[i].SqLenXY() < EPS_ZERO * EPS_ZERO) { Vector3d vtMove = ptLe[i] - ptLs[i] ; @@ -711,7 +708,7 @@ VolZmap::MillingStep( const Point3d& ptPs, const Vector3d& vtDs, const Vector3d& } // Versore utensile nel piano XY (perpendicolare allo spillone) - else if ( abs( vtLs[i].z) < EPS_SMALL) { + else if ( abs( vtLs[i].z) < EPS_ZERO) { Vector3d vtMove = ptLe[i] - ptLs[i] ; Vector3d vtMLong = ( vtMove * vtLs[i]) * vtLs[i] ;