EgtGeomKernel :

- piccola correzione a calcolo asportazione utensile in Zmap.
This commit is contained in:
Dario Sassi
2018-02-06 07:13:25 +00:00
parent 5649e228a0
commit 3caa17c369
+9 -3
View File
@@ -2774,8 +2774,11 @@ VolZmap::Conus_XYMilling( unsigned int nGrid, const Point3d & ptS, const Point3d
bool
VolZmap::CylBall_Drilling( unsigned int nGrid, const Point3d & ptS, const Point3d & ptE, const Vector3d & vtToolDir)
{
double dStemHeigth = m_Tool.GetHeigth() - m_Tool.GetRadius() ;
double dStemHeigth = m_Tool.GetHeigth() ;
// Sfera
if ( m_Tool.GetType() == Tool::BALLMILL)
dStemHeigth -= m_Tool.GetRadius() ;
CompCyl_Drilling( nGrid, ptS, ptE, vtToolDir, dStemHeigth, m_Tool.GetRadius(), false, false) ;
// Sfera
@@ -2791,7 +2794,10 @@ VolZmap::CylBall_Drilling( unsigned int nGrid, const Point3d & ptS, const Point3
bool
VolZmap::CylBall_Milling( unsigned int nGrid, const Point3d & ptS, const Point3d & ptE, const Vector3d & vtToolDir)
{
double dStemHeigth = m_Tool.GetHeigth() - m_Tool.GetTipHeigth() ;
double dStemHeigth = m_Tool.GetHeigth() ;
// Sfera
if ( m_Tool.GetType() == Tool::BALLMILL)
dStemHeigth -= m_Tool.GetRadius() ;
CompCyl_Milling( nGrid, ptS, ptE, vtToolDir, dStemHeigth, m_Tool.GetRadius(), false, false) ;