- correzioni varie per cubetti, in particolare sui tagli di testa e coda

This commit is contained in:
luca.mazzoleni
2026-01-29 15:46:10 +01:00
parent 0f20358607
commit 19f62cdc90
4 changed files with 23 additions and 7 deletions
+3 -3
View File
@@ -280,7 +280,7 @@ end
-------------------------------------------------------------------------------------------------------------
-- in base a tipo testa e angolo soglia, verifica se la faccia è troppo inclinata per la lavorazione scelta (per DownUp passare vtNFace opposta)
local function IsFaceZOutOfRange( vtNFace, Tool)
function MachiningLib.IsFaceZOutOfRange( vtNFace, Tool)
-- lama sopra: angolo negativo troppo basso
if Tool.SetupInfo.HeadType.bTop and vtNFace:getZ() < Tool.SetupInfo.GetMinNz( vtNFace, Tool) - GEO.EPS_ZERO then
@@ -315,7 +315,7 @@ local function TestEngagement( sBladeEngagement, Parameters, OptionalParameters)
end
-- se l'angolo non può essere raggiunto dall'utensile la lavorazione non è fattibile
if IsFaceZOutOfRange( vtHead, Tool) then
if MachiningLib.IsFaceZOutOfRange( vtHead, Tool) then
return false
end
@@ -645,7 +645,7 @@ function MachiningLib.FindBlade( Proc, ToolSearchParameters)
-- se si ha solo la faccia si può verificare se questa è orientata correttamente
elseif FaceToMachine then
if IsFaceZOutOfRange( FaceToMachine.vtN, TOOLS[i]) then
if MachiningLib.IsFaceZOutOfRange( FaceToMachine.vtN, TOOLS[i]) then
bIsToolCompatible = false
end
end