EgtGeomKernel :

- in Zmap correzione per calcolo normali alle asportazioni con frese cilindriche.
This commit is contained in:
Dario Sassi
2017-04-06 10:18:00 +00:00
parent 58e4e1dc7e
commit cb6122f8a0
+4 -2
View File
@@ -2196,7 +2196,8 @@ VolZmap::CylBall_XYPerp( unsigned int nGrid, const Point3d & ptS, const Point3d
dSupZ = ( dDotUp - dX * vtP.x - dY * vtP.y) / vtP.z ;
vtNmax = vtToolDir ^ vtMove ;
Vector3d vtT = vtToolDir ^ vtMove ;
vtNmax = ( vtT.z < 0 ? vtT : - vtT) ;
vtNmax.Normalize() ;
}
else {
@@ -2223,7 +2224,8 @@ VolZmap::CylBall_XYPerp( unsigned int nGrid, const Point3d & ptS, const Point3d
dInfZ = ( dDotDw - dX * vtP.x - dY * vtP.y) / vtP.z ;
vtNmin = - vtToolDir ^ vtMove ;
Vector3d vtT = vtToolDir ^ vtMove ;
vtNmin = ( vtT.z < 0 ? - vtT : vtT) ;
vtNmin.Normalize() ;
}
else {