From 876e45e1a4f09b454618e9a8d47fe365364b9454 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Fri, 11 Jul 2025 13:03:02 +0200 Subject: [PATCH] - in RidgeLap correzione alla direzione di lavoro cubetti --- LuaLibs/ProcessRidgeLap.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LuaLibs/ProcessRidgeLap.lua b/LuaLibs/ProcessRidgeLap.lua index dbfc145..39d5640 100644 --- a/LuaLibs/ProcessRidgeLap.lua +++ b/LuaLibs/ProcessRidgeLap.lua @@ -176,15 +176,15 @@ function ProcessRidgeLap.Make( Proc, nPhase, nRawId, nPartId, dOvmHead) local vtRef2 = Vector3d( vtN[vFaceOrd[2]]) -- eseguo for i = 1, #vCuts do - local nOrthoOpposite + local vtOrtho if i % 2 == 1 then - nOrthoOpposite = BL.GetNearestOrthoOpposite( vtRef) + vtOrtho = vtRef else - nOrthoOpposite = BL.GetNearestOrthoOpposite( vtRef2) + vtOrtho = vtRef2 end -- lavoro la faccia for j = 1, #vCuts[i] do - local bOk, sErr = Fbs.MakeOne( vCuts[i][j], 0, sCutting, dSawDiam, nOrthoOpposite, dVzLimDwnUp, 0, BD.CUT_SIC, 0, 0, 0, nil, b3Raw) + local bOk, sErr = Fbs.MakeOne( vCuts[i][j], 0, sCutting, dSawDiam, vtOrtho, dVzLimDwnUp, 0, BD.CUT_SIC, 0, 0, 0, nil, b3Raw) if not bOk then return bOk, sErr end