/
pproc.lua
29 lines (26 loc) · 914 Bytes
/
pproc.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ODS("Script~C0A 'pproc.lua'~C07 executed in thread~C0E "..thread_name.."~C07")
-- available globals:
-- def_layer_thickness (float)
-- def_exposure_time (float)
-- def_off_time (float)
-- def_bottom_time (float)
-- bottom_layers (int)
-- def_coarse_neighbors (int)
-- program_code (char)
-- photon_file (object)
-- layer (object)
function process_layer()
if program_code == 'c' then
layer.exp_time = 4.5 -- this not affected???
-- more steps - erasing more edges
layer:coarse()
layer:coarse()
layer:coarse()
-- lower half of layer, for testing
-- layer:coarse(def_coarse_neighbors, 0, 1280, 1438, 2558)
-- layer:coarse(def_coarse_neighbors, 0, 1280, 1438, 2558)
-- layer:coarse(def_coarse_neighbors, 0, 1280, 1438, 2558)
else
ODS(string.format("unsupported program code [%s]", program_code))
end
end