From 4034898f6ed4e8fb052463558ca22d7f28dfeff7 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 21 Sep 2023 16:10:32 +0200 Subject: [PATCH] - in FreeContour e Lapjoint, in MakeByMill, modificato SCC --- LuaLibs/WProcessFreeContour.lua | 4 +++- LuaLibs/WProcessLapJoint.lua | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/LuaLibs/WProcessFreeContour.lua b/LuaLibs/WProcessFreeContour.lua index dfa7eae..193c620 100644 --- a/LuaLibs/WProcessFreeContour.lua +++ b/LuaLibs/WProcessFreeContour.lua @@ -1091,6 +1091,7 @@ local function AddMillCorner( nTypeConeCut, vFace, Proc, nRawId, b3Raw, local nFacCnt = EgtSurfTmFacetCount( nNewProc) local nFacInd, dDepth, nSurfInt local bMakeLocSurf + -- RIMUOVERE if false and nFacCnt <= 4 then -- recupero profondità e faccia di fondo _, _, dDepth, _, _, nSurfInt = GetTunnelDimension( nNewProc, Proc.PartId, nAddGrpId, bClosed) @@ -1105,6 +1106,7 @@ local function AddMillCorner( nTypeConeCut, vFace, Proc, nRawId, b3Raw, else return true end + -- FINE PARTE DA RIMUOVERE else bMakeLocSurf = true end @@ -2188,7 +2190,7 @@ local function MakeByMill( Proc, nRawId, b3Raw) -- posizione braccio porta testa local nSCC = MCH_SCC.ADIR_ZP if AreSameOrOppositeVectorApprox( vtExtr, Z_AX()) then - nSCC = EgtIf( Proc.Box:getDimX() >= Proc.Box:getDimY(), MCH_SCC.ADIR_YP, MCH_SCC.ADIR_XP) + nSCC = EgtIf( Proc.Box:getDimX() >= Proc.Box:getDimY(), MCH_SCC.ADIR_YP, MCH_SCC.ADIR_XM) end EgtSetMachiningParam( MCH_MP.SCC, nSCC) -- eseguo diff --git a/LuaLibs/WProcessLapJoint.lua b/LuaLibs/WProcessLapJoint.lua index 85f23d8..59ceab7 100644 --- a/LuaLibs/WProcessLapJoint.lua +++ b/LuaLibs/WProcessLapJoint.lua @@ -1095,6 +1095,7 @@ local function AddMillCorner( nTypeConeCut, vFace, Proc, nRawId, b3Raw, local nFacCnt = EgtSurfTmFacetCount( nNewProc) local nFacInd, dDimMin, dDimMax, dDepth, nSurfInt local bMakeLocSurf + -- RIMUOVERE if false and nFacCnt <= 4 then -- ottengo le dimensioni apertura, la normale e la faccia inferiore dDimMin, dDimMax, dDepth, _, _, nSurfInt = GetTunnelDimension( nNewProc, Proc.PartId, nAddGrpId) @@ -1112,6 +1113,7 @@ local function AddMillCorner( nTypeConeCut, vFace, Proc, nRawId, b3Raw, EgtOutLog( sErr) return false, sErr end + -- FINE PARTE DA RIMUOVERE else bMakeLocSurf = true end @@ -1399,7 +1401,7 @@ local function MakeByMill( Proc, nFacet, nOthFac, nRawId, b3Raw, dSideDist) -- imposto posizione braccio porta testa local nSCC = MCH_SCC.ADIR_ZP if AreSameOrOppositeVectorApprox( vtN, Z_AX()) then - nSCC = EgtIf( Proc.Box:getDimX() >= Proc.Box:getDimY(), MCH_SCC.ADIR_YP, MCH_SCC.ADIR_XP) + nSCC = EgtIf( Proc.Box:getDimX() >= Proc.Box:getDimY(), MCH_SCC.ADIR_YP, MCH_SCC.ADIR_XM) end EgtSetMachiningParam( MCH_MP.SCC, nSCC) -- imposto modo di lavorare la faccia