diff --git a/Drilling.cpp b/Drilling.cpp index 0494571..de43b2f 100644 --- a/Drilling.cpp +++ b/Drilling.cpp @@ -1384,7 +1384,7 @@ bool Drilling::VerifyHoleFromBottom( const Hole& hole, SelData Id) { // se non è foro dal basso in alto, esco - if ( hole.vtDir.z > - 0.5) + if ( hole.vtDir.z > MIN_ZDIR_TOP_TOOL) return true ; // se c'è tavola basculante, esco bool bTabTilting = false ; diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 7103539..ea7ea15 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/MachConst.h b/MachConst.h index e3880c3..a701c77 100644 --- a/MachConst.h +++ b/MachConst.h @@ -107,3 +107,7 @@ const std::string NST_EXT_LAYER = "OutLoop" ; //---------------------------------------------------------------------------- // Sicurezza su massimo affondamento utensili const double MAX_DEPTH_SAFE = 2.0 ; + +//---------------------------------------------------------------------------- +// Minima componente zeta di versore utensile per lavorazione da sopra (-45deg) +const double MIN_ZDIR_TOP_TOOL = -0.7072 ; diff --git a/Milling.cpp b/Milling.cpp index aebf20b..7fcf1a0 100644 --- a/Milling.cpp +++ b/Milling.cpp @@ -1863,7 +1863,7 @@ bool Milling::VerifyPathFromBottom( const ICurveComposite* pCompo, const Vector3d& vtTool) { // se non è fresatura dal basso in alto, esco - if ( vtTool.z > - 0.5) + if ( vtTool.z > MIN_ZDIR_TOP_TOOL) return true ; // se c'è tavola basculante, esco if ( m_bTiltingTab) diff --git a/Pocketing.cpp b/Pocketing.cpp index f07800a..6940dfe 100644 --- a/Pocketing.cpp +++ b/Pocketing.cpp @@ -1654,8 +1654,8 @@ Pocketing::CalcPathElevation( const ICurveComposite* pCompo, const Vector3d& vtT bool Pocketing::VerifyPathFromBottom( const ICurveComposite* pCompo, const Vector3d& vtTool) { - // se non è fresatura dal basso in alto, esco - if ( vtTool.z > - 0.5) + // se non è svuotatura dal basso in alto, esco + if ( vtTool.z > MIN_ZDIR_TOP_TOOL) return true ; // se c'è tavola basculante, esco bool bTabTilting = false ;