From 74662a591fc4c05a9d55d7741acd9c3e3063bae2 Mon Sep 17 00:00:00 2001 From: DarioS Date: Mon, 20 Sep 2021 09:13:51 +0200 Subject: [PATCH] DataWall : - altra correzione per fresature su lati inclinati. --- LuaLibs/WProcessFreeContour.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LuaLibs/WProcessFreeContour.lua b/LuaLibs/WProcessFreeContour.lua index 15a553c..39e3c4f 100644 --- a/LuaLibs/WProcessFreeContour.lua +++ b/LuaLibs/WProcessFreeContour.lua @@ -1150,6 +1150,9 @@ local function AddMillings( sMilling, vFace, Proc, nRawId, b3Raw, nConeCut, nAdd -- aggiungo geometria EgtSetMachiningGeometry( {{ Proc.Id, vFace[i].Fac}}) local dSal = EgtIf( #vFace == 1 or vFace[i].PrevAng < -30, -dMillDiam / 2, 0) + if vFace[i].PrevAng < -30 and j and vFace[j].Norm:getZ() < -0.017 then + dSal = dSal + vFace[j].Width * vFace[j].Norm:getZ() + end local dEal = vFace[i].Whisk - vFace[i].Len EgtSetMachiningParam( MCH_MP.STARTADDLEN, dSal) EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal)