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] ;