From 66159b25a8acb98a9a2299aee2f5a03bcf5dcf94 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Mon, 19 Jan 2026 18:39:29 +0100 Subject: [PATCH] - piccola correzione --- LuaLibs/PreSimulationLib.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LuaLibs/PreSimulationLib.lua b/LuaLibs/PreSimulationLib.lua index b003bb8..5fcaf37 100644 --- a/LuaLibs/PreSimulationLib.lua +++ b/LuaLibs/PreSimulationLib.lua @@ -425,6 +425,7 @@ function PreSimulationLib.CheckCollision( sBladeEngagement, Parameters, Optional if bIsDicing and ( sBladeEngagement == 'Standard') then bCheckOnlyRestlengthForAxisABC = true -- se l'elevazione reale (rispetto al pezzo) è maggiore del massimo materiale è sempre collisione + -- TODO funzione else local Edge = Parameters.Edge local vtNFace = Parameters.vtNFace @@ -437,7 +438,7 @@ else EgtInvertSurf( idTrimesh) end local dRealElevation = EgtSurfTmFacetElevationInBBox( idTrimesh, 0, Parameters.Part.b3Part, true, GDB_ID.ROOT) - local dRealDepthToMachine = ( dRealElevation - Parameters.Edge.dElevation + Parameters.dDepthToMachine) + local dRealDepthToMachine = ( dRealElevation - Parameters.Edge.dElevation + dDepthToMachine) if dRealDepthToMachine > Parameters.Tool.dMaxDepth + 10 * GEO.EPS_SMALL then return true end