3dPrinting :
- gestita interruzione degli script.
This commit is contained in:
@@ -1225,7 +1225,7 @@ local function SpiralVase( vLayIds, LayerParams)
|
||||
|
||||
if EgtProcessEvents( EgtIf( PRINT, 300, 0) + nIdx / #vLayIds * 100, 0) == 1 then
|
||||
EgtDraw()
|
||||
return
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1235,6 +1235,7 @@ local function SpiralVase( vLayIds, LayerParams)
|
||||
-- correzione in z
|
||||
AddZCorrection( b3Tot, LayerParams)
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
@@ -1242,17 +1243,11 @@ function CalcToolPath.Exec( nPartId)
|
||||
|
||||
s_nPartId = nPartId
|
||||
|
||||
-- Verifico il pezzo
|
||||
if not s_nPartId then
|
||||
EgtOutBox( 'Error missing part', 'ToolPathCalc')
|
||||
return
|
||||
end
|
||||
|
||||
-- Recupero i layer da processare
|
||||
local vLayIds = EgtGetNameInGroup( s_nPartId, SLICE_LAYER.."*")
|
||||
if not vLayIds then
|
||||
EgtOutBox( 'Error missing slices', 'ToolPathCalc')
|
||||
return
|
||||
return true
|
||||
end
|
||||
|
||||
-- recupero i parametri per calcolo dei toolpath
|
||||
@@ -1264,8 +1259,7 @@ function CalcToolPath.Exec( nPartId)
|
||||
|
||||
-- caso spiral vase
|
||||
if LayerParams.bSpiralVase then
|
||||
SpiralVase( vLayIds, LayerParams)
|
||||
return
|
||||
return SpiralVase( vLayIds, LayerParams)
|
||||
end
|
||||
|
||||
local b3Tot = BBox3d() -- box dei toolpath
|
||||
@@ -1353,6 +1347,8 @@ function CalcToolPath.Exec( nPartId)
|
||||
-- correzione in z
|
||||
AddZCorrection( b3Tot, LayerParams)
|
||||
|
||||
return true
|
||||
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user