From f76797cbd8cc3cba7b19f2e330a97a462f262066 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Fri, 12 Sep 2025 12:56:42 +0200 Subject: [PATCH] =?UTF-8?q?In=20LapJoint,=20se=20non=20=C3=A8=20trave=20co?= =?UTF-8?q?rta=20e=20la=20feature=20=C3=A8=20aperta=20in=20coda,=20si=20sp?= =?UTF-8?q?osta=20dopo=20separazione=20a=20patto=20che=20non=20sia=20pi?= =?UTF-8?q?=C3=B9=20lunga=20di=20met=C3=A0=20trave=20circa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/ProcessLapJoint.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index 9b4c6f1..dee8e9d 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -802,8 +802,11 @@ function ProcessLapJoint.IsTailFeature( Proc, b3Raw) end end + -- se non è trave corta e la feature è aperta in coda, si sposta dopo separazione a patto che non sia più lunga di metà trave + if b3Solid:getDimX() > BD.LEN_SHORT_PART and Proc.AffectedFaces.Left and Proc.Box:getDimX() < 0.6 * b3Solid:getDimX() then + return true -- se lunga come trave, oppure non è trave corta e la sua lunghezza supera il massimo o il 80% della lunghezza della trave - if Proc.Box:getDimX() > b3Solid:getDimX() - 1 or + elseif Proc.Box:getDimX() > b3Solid:getDimX() - 1 or ( b3Solid:getDimX() > BD.LEN_SHORT_PART and Proc.Box:getDimX() > min( BD.MAX_LEN_HTFEA, 0.8 * b3Solid:getDimX())) then return false end