EgtGeomKernel :

- correzioni a Zmap su taglio spilloni.
This commit is contained in:
Dario Sassi
2018-09-24 05:35:08 +00:00
parent d6eef57a44
commit 6fe2f67083
+2 -5
View File
@@ -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] ;