From 3af41a8d4dd6df124f48db82d7cb75cfa9a37a95 Mon Sep 17 00:00:00 2001 From: DarioS Date: Thu, 23 Mar 2023 19:06:50 +0100 Subject: [PATCH 1/2] DataBeam : - modifica per fare le mortase a coda di rondine prima dei tagli longitudinali indipendentemente dalla sovrapposizione in Y. --- LuaLibs/BeamExec.lua | 8 ++++---- Version.lua | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 337b5cc..8131b40 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -706,14 +706,14 @@ local function OrderFeatures( vProc, b3Raw) B2.Box:getCenter():getX() > B1.Box:getMin():getX() and B2.Box:getCenter():getX() < B1.Box:getMax():getX() then return false end - -- se prima è coda di rondine e secondo taglio longitudinale, la coda di rondine va sempre prima + -- se prima è mortasa coda di rondine sul fianco e secondo taglio longitudinale, la coda di rondine va sempre prima if DtMortise.SideIdentify(B1) and ( LongCut.Identify(B2) or Long2Cut.Identify(B2)) and - OverlapsXY( B1.Box, B2.Box) then + OverlapsX( B1.Box, B2.Box) then return true end - -- se primo è taglio longitudinale e seconda è coda di rondine, il taglio longitudinale va sempre dopo + -- se primo è taglio longitudinale e seconda è mortasa coda di rondine sul fianco, il taglio longitudinale va sempre dopo if ( LongCut.Identify(B1) or Long2Cut.Identify(B1)) and DtMortise.SideIdentify(B2) and - OverlapsXY( B1.Box, B2.Box) then + OverlapsX( B1.Box, B2.Box) then return false end -- se entrambi tenoni e si intersecano, metto prima tenone vero e poi base tenone diff --git a/Version.lua b/Version.lua index daf625f..2374e2c 100644 --- a/Version.lua +++ b/Version.lua @@ -1,6 +1,6 @@ --- Version.lua by Egaltech s.r.l. 2023/03/22 +-- Version.lua by Egaltech s.r.l. 2023/03/23 -- Gestione della versione di Beam NAME = 'Beam' VERSION = '2.5c7' -MIN_EXE = '2.5b3' +MIN_EXE = '2.5c1' From 641bf33e4b807bb16b95fe262f07271bd1720afa Mon Sep 17 00:00:00 2001 From: DarioS Date: Thu, 23 Mar 2023 20:46:10 +0100 Subject: [PATCH 2/2] DataBeam : - modifica ingombro tagli inclinati per macchine con trascinatori tipo PF (BD.PRESS_ROLLER). --- LuaLibs/ProcessCut.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaLibs/ProcessCut.lua b/LuaLibs/ProcessCut.lua index 2205a51..cacc7f2 100644 --- a/LuaLibs/ProcessCut.lua +++ b/LuaLibs/ProcessCut.lua @@ -212,7 +212,7 @@ local function UpdateEncumbrance( Proc, vtN, dOvmHead, nRawId, b3Solid, b3Raw) if vtN:getZ() > 0.5 then dOffs = dOffs - 0.6 * Proc.Box:getDimX() elseif vtN:getZ() < -0.5 then - dOffs = dOffs - 0.2 * Proc.Box:getDimX() + dOffs = dOffs - EgtIf( BD.PRESS_ROLLER, 0.4, 0.2) * Proc.Box:getDimX() elseif ( abs( vtN:getY()) > 0.9 and vtN:getZ() > 0.2) then dOffs = dOffs - 0.3 * Proc.Box:getDimX() end @@ -222,7 +222,7 @@ local function UpdateEncumbrance( Proc, vtN, dOvmHead, nRawId, b3Solid, b3Raw) if vtN:getZ() > 0.5 then dOffs = dOffs - 0.6 * Proc.Box:getDimX() elseif vtN:getZ() < -0.5 then - dOffs = dOffs - 0.2 * Proc.Box:getDimX() + dOffs = dOffs - EgtIf( BD.PRESS_ROLLER, 0.4, 0.2) * Proc.Box:getDimX() elseif ( abs( vtN:getY()) > 0.9 and vtN:getZ() > 0.2) then dOffs = dOffs - 0.3 * Proc.Box:getDimX() end