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