-in MachiningLib e BLADETOWASTE piccole correzioni

This commit is contained in:
luca.mazzoleni
2025-12-19 16:27:01 +01:00
parent 73acee6695
commit 70025d1816
3 changed files with 40 additions and 2 deletions
+2 -2
View File
@@ -575,7 +575,7 @@ function MachiningLib.FindBlade( Proc, ToolSearchParameters)
local bAllowBottomHead = ToolSearchParameters.bAllowBottomHead
-- parametri opzionali
local dElevation = ToolSearchParameters.dElevation or 0
local dElevation = ToolSearchParameters.dElevation
local bForceLongcutBlade = ToolSearchParameters.bForceLongcutBlade or false
local EdgeToMachine = ToolSearchParameters.EdgeToMachine
local Part = ToolSearchParameters.Part
@@ -636,7 +636,7 @@ function MachiningLib.FindBlade( Proc, ToolSearchParameters)
if bIsToolCompatible then
-- TODO gestire accorciamento massimo materiale per inclinazione
local dCurrentResidualDepth = dElevation - TOOLS[i].dMaxDepth
local dCurrentResidualDepth = ( dElevation or 0) - TOOLS[i].dMaxDepth
if not nBestToolIndex or ( dBestToolResidualDepth > 0 and dCurrentResidualDepth <= 10 * GEO.EPS_SMALL) then
nBestToolIndex = i
dBestToolResidualDepth = dCurrentResidualDepth