From a749895229a465f20d2295cb8c52530d5eb5cb32 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Thu, 18 Sep 2025 09:32:50 +0200 Subject: [PATCH] =?UTF-8?q?In=20DtTenon,=20si=20controlla=20grezzo=20succe?= =?UTF-8?q?ssivo=20per=20decidere=20se=20=C3=A8=20necessario=20tagliare=20?= =?UTF-8?q?dal=20basso=20per=20ridurre=20sporgenza=20trave.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/ProcessDtTenon.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/LuaLibs/ProcessDtTenon.lua b/LuaLibs/ProcessDtTenon.lua index d8339ad..c93b963 100644 --- a/LuaLibs/ProcessDtTenon.lua +++ b/LuaLibs/ProcessDtTenon.lua @@ -209,7 +209,15 @@ function ProcessDtTenon.Make( Proc, nPhase, nRawId, nPartId, dOvmHead) local CutProc = { Id = AddId, Grp = Proc.Grp, Prc = Proc.Prc, Box = Proc.Box, Fct = Proc.Fct, Flg = Proc.Flg, Head = Proc.Head, Tail = Proc.Tail, CutId = Proc.CutId, TaskId = Proc.TaskId, PartId = Proc.PartId} CutProc.AffectedFaces = BL.GetProcessAffectedFaces( CutProc) - local bFromBottom = ( b3Solid:getDimX() < BD.LEN_SHORT_PART and vtExtr:getZ() > 0.25) + + -- se esiste grezzo successivo non serve tagliare dal basso + local bFromBottom + local nNextRawId = EgtGetNextRawPart( nRawId) + if nNextRawId and EgtGetRawPartBBox( nNextRawId):getDimX() > BD.MinRaw and not Proc.Tail then + bFromBottom = false + else + bFromBottom = ( b3Solid:getDimX() < BD.LEN_SHORT_PART and vtExtr:getZ() > 0.25) + end local bOk, sErr = Cut.Make( CutProc, nPhase, nRawId, nPartId, dOvmHead, bFromBottom) if not bOk then return bOk, sErr end end