- in NestProcess aggiunto lo spostamento delle travi verso la testa della trave (vedere se poi integrare in creazione MachGroup)
This commit is contained in:
+15
-1
@@ -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()
|
||||
Reference in New Issue
Block a user