Piccola correzione rotazione pezzo per calcolo strategie

This commit is contained in:
andrea.villa
2025-03-11 12:03:11 +01:00
parent 35e8e921f3
commit 703fefa973
+4 -1
View File
@@ -995,7 +995,7 @@ local function CalculateMachinings( vProc, Part)
elseif Proc.bSide and CurrRotation ~= 2 then
BeamLib.RotatePart( Part, 2 - CurrRotation)
CurrRotation = 2
elseif CurrRotation ~= 1 then
elseif CurrRotation ~= 1 and not( Proc.bSide) and not( Proc.bDown) then
BeamLib.RotatePart( Part, 1 - CurrRotation)
CurrRotation = 1
end
@@ -1016,6 +1016,9 @@ local function CalculateMachinings( vProc, Part)
-- ripristino pezzo in posizione originale
if CurrRotation ~= 1 then
BeamLib.RotatePart( Part, 1 - CurrRotation)
-- aggiorno info pezzo
Part.b3Raw = EgtGetRawPartBBox( Part.idRaw)
Part.b3Part = EgtGetBBoxGlob( EgtGetFirstNameInGroup( Part.id, 'Box') or GDB_ID.NULL, GDB_BB.STANDARD)
CurrRotation = 1
end
return MACHININGS