From 04489421e776570abea291056da034dad502f60c Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Thu, 18 Sep 2025 08:42:57 +0200 Subject: [PATCH] =?UTF-8?q?In=20ProcessCut,=20si=20fa=20taglio=20verso=20Z?= =?UTF-8?q?=20solo=20se=20=C3=A8=20possibile=20avere=20una=20direzione=20d?= =?UTF-8?q?i=20taglio=20orizzontale=20e=20non=20in=20verticale.=20Altrimen?= =?UTF-8?q?ti=20cerca=20sempre=20di=20scegliere=20in=20verticale.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/ProcessCut.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaLibs/ProcessCut.lua b/LuaLibs/ProcessCut.lua index 62fff86..1777de0 100644 --- a/LuaLibs/ProcessCut.lua +++ b/LuaLibs/ProcessCut.lua @@ -627,7 +627,7 @@ local function MakeFromTop( sCutting, Proc, nPhase, nRawId, nPartId, dOvmHead, b local vtOrthoO if bFromBottom and dCutV < dMaxDepth - BD.CUT_EXTRA and vtN:getZ() > 0 then vtOrthoO = -Z_AX() - elseif ( bHorizCut or ( dCutV < dMaxDepth - BD.CUT_EXTRA and not bVertCutOk)) and + elseif ( bHorizCut and not bVertCutOk) and ( not bVertCutOk or b3Solid:getDimX() > BD.LEN_SHORT_PART or Proc.AdvTail or ( vtN:getX() > 0 and vtN:getZ() <= 0.708) or ( abs( vtN:getY()) < 0.1 and vtN:getZ() <= 0)) then vtOrthoO = Z_AX() elseif b3Solid:getDimX() < BD.LEN_SHORT_PART and not Proc.AdvTail and abs( vtN:getY()) > 0.259 and