- in BLADETOWASTE se un cubetto finisce dopo separazione si spostano tutti
This commit is contained in:
@@ -404,6 +404,7 @@ function BLADETOWASTE.Make( ProcOrId, Part, OptionalParameters)
|
||||
|
||||
-- lavorazione cubetti
|
||||
local bIsDicingOk = true
|
||||
local bMoveAfterSplit = false
|
||||
-- eventuale inversione tagli ortogonali e aggiunta informazioni alla geometria
|
||||
local bAreOrthogonalCutsInverted = false
|
||||
for i = 1, #vCuts do
|
||||
@@ -483,6 +484,9 @@ function BLADETOWASTE.Make( ProcOrId, Part, OptionalParameters)
|
||||
else
|
||||
bIsDicingOk = false
|
||||
end
|
||||
if Cutting.sStage == 'AfterTail' then
|
||||
bMoveAfterSplit = true
|
||||
end
|
||||
-- caso generale
|
||||
else
|
||||
-- in generale sta sollevato di pochissimo
|
||||
@@ -518,10 +522,20 @@ function BLADETOWASTE.Make( ProcOrId, Part, OptionalParameters)
|
||||
else
|
||||
bIsDicingOk = false
|
||||
end
|
||||
if Cutting.sStage == 'AfterTail' then
|
||||
bMoveAfterSplit = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- se presente anche solo una lavorazione AfterTail si spostano tutte
|
||||
if bMoveAfterSplit then
|
||||
for i = 1, #Machinings do
|
||||
Machinings[i].sStage = 'AfterTail'
|
||||
end
|
||||
end
|
||||
|
||||
-- risultati del calcolo
|
||||
-- TODO contemplare il caso di lavorazione incompleta per i cubetti?????
|
||||
if bIsDicingOk then
|
||||
|
||||
Reference in New Issue
Block a user