From fd31ea425e37514fe0a8da531f34d6bbd891dce8 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 2 Apr 2019 09:27:29 +0000 Subject: [PATCH] EgtMachKernel 2.1d1 : - portato limite direzione utensile per aggregato da sotto a -45deg. --- Drilling.cpp | 2 +- EgtMachKernel.rc | Bin 11774 -> 11774 bytes MachConst.h | 4 ++++ Milling.cpp | 2 +- Pocketing.cpp | 4 ++-- 5 files changed, 8 insertions(+), 4 deletions(-) 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 710353946aa97a701c9031ea34342eef7199e315..ea7ea154158a33fe711e95dcc35747a736f176c1 100644 GIT binary patch delta 121 zcmewt{V#gMH#Sxi1|0^&&A-{KnVC}<3@1O7)ZLuM)x!c8zsNNCgkT;*P6$a3MUMyL R=2g-z%(yjz6ex#q0RU@pCXfIC delta 121 zcmewt{V#gMH#Syd1|0^|&A-{KnVFLrOea5-)ZLuM)x!c8zsNNCgkT;*P6$a3MUMyL R=2g-z%(yjz6ex#q0RVAdCa3@a 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 ;