diff --git a/LuaLibs/WProcessLapJoint.lua b/LuaLibs/WProcessLapJoint.lua index 39467ca..0480f72 100644 --- a/LuaLibs/WProcessLapJoint.lua +++ b/LuaLibs/WProcessLapJoint.lua @@ -2222,11 +2222,9 @@ local function VerifyPocket( Proc, dMaxDiameter, dElev, nRawId, dH, dV) end end -- verifico se la lavorazione (o il suo eventuale doppio) potrebbe danneggiare le parti limitrofe e devo quindi forzare una tasca chiusa - if WD.AVOID_DAMAGING_OTHER_PARTS then - if IsMachiningDamagingOtherParts( Proc, dMillDiam, nRawId) or - Proc.Double and Proc.Double > 0 and IsMachiningDamagingOtherParts( Proc.Mirror, dMillDiam, nRawId) then - bForceClosedPocket = true - end + if IsMachiningDamagingOtherParts( Proc, dMillDiam, nRawId) or + Proc.Double and Proc.Double > 0 and IsMachiningDamagingOtherParts( Proc.Mirror, dMillDiam, nRawId) then + bForceClosedPocket = true end -- altrimenti diametro utensile troppo piccolo: devo forzare tasca chiusa else diff --git a/LuaLibs/WallExec.lua b/LuaLibs/WallExec.lua index a74fbc0..388bd42 100644 --- a/LuaLibs/WallExec.lua +++ b/LuaLibs/WallExec.lua @@ -192,24 +192,19 @@ function WallExec.CollectFeatures( PartId, b3Raw) Proc.TaskId = nTaskId Proc.Box = EgtGetBBoxGlob( ProcId, GDB_BB.STANDARD) Proc.IsOutline = ( Proc.Prc == 251 or Proc.Prc == 252) - if b3Raw then -- recupero l'elenco delle facce della parte interessate dalla feature Proc.AffectedFaces = WL.GetProcessAffectedFaces( Proc) - -- recupero le distanze tra la feature e le altre parti più vicine Proc.DistanceToNearestParts = WL.GetProcessDistanceToNearestParts( Proc) - -- recupero le distanze tra la feature e il grezzo Proc.DistanceToRawPart = WL.GetProcessDistanceToRawPart( Proc, b3Raw) - -- recupero informazioni sulle facce della feature Proc.Face = {} for i = 1, Proc.Fct do Proc.Face[i] = { Id = i - 1, VtN = EgtSurfTmFacetNormVersor( Proc.Id, i - 1, GDB_ID.ROOT ), Elevation = WL.GetFaceElevation( Proc.Id, i - 1, PartId)} end end - if Proc.Box and not Proc.Box:isEmpty() then table.insert( vProc, Proc) -- se foro