- in NestProcess aggiunto lo spostamento delle travi verso la testa della trave (vedere se poi integrare in creazione MachGroup)

This commit is contained in:
luca.mazzoleni
2026-05-18 14:45:57 +02:00
parent 965c6e8f9e
commit e5f1abc47d
+15 -1
View File
@@ -475,7 +475,8 @@ local function CommitBestMove( BestMove)
id = Job.id,
sState = BestMove.sState,
dSafeOverlap = BestMove.dSafeOverlap,
dLength = Template.dLength
dLength = Template.dLength,
dPosX = BestMove.dFutureResidualLength
})
-- chiusura job
@@ -555,4 +556,17 @@ while true do
end
end
-- Spostamento travi verso la testa della barra
-- TODO vedere se integrabile in creazione MachGroup
for i = 1, #RawInventory.ActiveBeams do
local Beam = RawInventory.ActiveBeams[i]
local dOffset = NEST.STARTOFFSET or 0
for j = 1, #Beam.NestedParts do
local Part = Beam.NestedParts[j]
Part.dPosX = Part.dPosX - Beam.dResidualLength + dOffset
end
end
RawInventory:PrintDiagnosticReport()