- alcune correzioni nel calcolo approccio retrazione per lavorazioni di coda e split

- in STR0003 aggiunta gestione lavorazioni di coda per sega a catena
This commit is contained in:
luca.mazzoleni
2024-12-03 16:47:47 +01:00
parent bb82dcb724
commit a6ddaa8bbd
4 changed files with 34 additions and 34 deletions
+3 -3
View File
@@ -66,9 +66,6 @@ end
function MachiningLib.StartsLeftSide( Machining)
local bStartsLeftSide = ( Machining.vtEdgeDirection:getX() > 10 * GEO.EPS_SMALL and not Machining.bInvert)
or ( not( Machining.vtEdgeDirection:getX() > 10 * GEO.EPS_SMALL) and Machining.bInvert)
if Machining.bToolInvert then
bStartsLeftSide = not bStartsLeftSide
end
return bStartsLeftSide
end
@@ -137,6 +134,9 @@ function MachiningLib.GetSplitMachinings( Machinings, vSplittingPoints, Part )
local dStartAddLength = dOriginalStartAddLength
local dEndAddLength = dOriginalEndAddLength
if MachiningLib.StartsLeftSide( Machinings[nCurrentMachiningIndex]) then
dStartAddLength, dEndAddLength = dEndAddLength, dStartAddLength
end
if j == 1 then
dEndAddLength = - ( vSplittingPoints[j]:getX() - dEdgeMinX) + BeamData.MILL_OVERLAP
elseif j == nParts then