- in LeadInOutLib correzione nel calcolo di ptStartAtDepth e ptEndAtDepth

This commit is contained in:
luca.mazzoleni
2025-12-16 13:10:45 +01:00
parent 05f729df45
commit 827a709af0
+2 -2
View File
@@ -67,8 +67,8 @@ function LeadInOutLib.CalculateLeadInOut( sLeadInOutType, Parameters)
local dDepthToMachineNext = dDepthToMachine / abs( vtEdgeNextLoc:getY())
-- punti di inizio e fine lavorazione alla profondità di lavoro reale
local ptStartAtDepth = Edge.ptStart + ( -EdgePrevious.vtEdge) * ( EdgePrevious.dLength - dDepthToMachinePrevious)
local ptEndAtDepth = Edge.ptEnd + EdgeNext.vtEdge * ( EdgeNext.dLength - dDepthToMachineNext)
local ptStartAtDepth = Edge.ptStart + Edge.vtN * ( Edge.dElevation - dDepthToMachine)
local ptEndAtDepth = Edge.ptEnd + Edge.vtN * ( Edge.dElevation - dDepthToMachine)
-- distanza dai punti di inizio e fine lavorazione reali al pezzo, nelle direzioni dei lati adiacenti
-- TODO bisogna controllare bOk???