DataBeam :

- correzioni varie.
This commit is contained in:
Dario Sassi
2020-07-27 14:46:04 +00:00
parent 4cba5fca30
commit 8e6f59ca62
9 changed files with 347 additions and 215 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
-- ProcessDrill.lua by Egaltech s.r.l. 2020/06/18
-- ProcessDrill.lua by Egaltech s.r.l. 2020/07/25
-- Gestione calcolo forature per Travi
-- Tabella per definizione modulo
@@ -49,7 +49,7 @@ end
-- Verifica se feature di coda
function ProcessDrill.IsTailFeature( Proc, b3Raw)
-- verifico se è in coda
if Proc.Box:getMin():getX() > b3Raw:getMin():getX() + BD.MAX_DIST_HTFEA then
if Proc.Box:getMin():getX() > b3Raw:getMin():getX() + BD.OVM_MID + BD.MAX_DIST_HTFEA then
return false
end
-- recupero e verifico l'entità foro
@@ -60,7 +60,7 @@ function ProcessDrill.IsTailFeature( Proc, b3Raw)
end
local vtExtr = EgtCurveExtrusion( AuxId, GDB_RT.GLOB)
-- se entrata principale
if Proc.Flg > 0 then
if Proc.Flg == 2 or ( Proc.Flg == 1 and vtExtr:getZ() >= BD.DRILL_VZ_MIN) then
local nFcs = EgtGetInfo( Proc.Id, 'FCS', 'i') or 0
return ( ( nFcs == 5 or nFcs == 6) and vtExtr:getX() < -0.5)
-- altrimenti entrata opposta