3dPrinting :
- introdotta info con numero totale di layers.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user