3dPrinting :

- introdotta info con numero totale di layers.
This commit is contained in:
SaraP
2023-08-09 17:34:16 +02:00
parent 4a4a7d648b
commit 28686fe6b6
3 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -1885,7 +1885,7 @@ function CalcToolPath.Exec( nPartId)
end
local b3Tot = BBox3d() -- box dei toolpath
local nLayCnt = 1
-- Ciclo sui layer
for nIdx = 1, #vLayIds do
@@ -1968,6 +1968,11 @@ function CalcToolPath.Exec( nPartId)
local b3Box = ComputeToolPathBox( nTpathGrpId)
b3Tot:Add( b3Box)
-- verifico non sia vuoto per aggiornare il numero di layers
if EgtGetFirstInGroup( nTpathGrpId) then
nLayCnt = nIdx
end
-- passo al gruppo di contorni successivo
nCrvGrpId = EgtGetNextName( nCrvGrpId, CONTOUR_GRP.."*")
end
@@ -1981,6 +1986,9 @@ function CalcToolPath.Exec( nPartId)
-- correzione in z
AddZCorrection( b3Tot, LayerParams)
-- setto info con numero di layers effettivi
EgtSetInfo( nPartId, KEY_LAYER_CNT, nLayCnt)
return true
end