diff --git a/LuaLibs/FacesBySaw.lua b/LuaLibs/FacesBySaw.lua index 95b5981..c456778 100644 --- a/LuaLibs/FacesBySaw.lua +++ b/LuaLibs/FacesBySaw.lua @@ -338,7 +338,9 @@ function FacesBySaw.MakeOne( nSurfId, nFacet, sCutting, dSawDiam, Par5, dVzLimDw local dLo2Perp = 0 local dLi2CompLength = 0 - if bIsDicingHorizontalCut and not bIsBiLinea then + -- si predilige un attacco tangenziale (con calcolo automatico di quanto uscire) se faccia non troppo orientata verso X e linea non troppo inclinata in X + -- TODO si potranno togliere i limiti sulle normali quando si implementerà un modo per calcolare Lead In / Out correttamente in tutti i casi + if bIsDicingHorizontalCut and not bIsBiLinea and ( abs( vtN:getX()) < 0.707) and ( abs( vtTg:getX()) < 0.1736) then dLi2Tang = 0 dLi2Perp = BD.MAX_DIM_DICE + BD.CUT_EXTRA dLi2CompLength = dLen + dSawDiam / 2 + BD.COLL_SIC