diff --git a/examples/image_slicer.scad b/examples/image_slicer.scad index d5f6120b..798be4ff 100644 --- a/examples/image_slicer.scad +++ b/examples/image_slicer.scad @@ -2,7 +2,6 @@ use ; use ; level_step = 51; -contour_width = 1.5; levels = [ [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], @@ -107,7 +106,7 @@ levels = [ [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255] ]; -module image_slicer(levels, level_step, contour_width) { +module image_slicer(levels, level_step) { points = [ for(y = [0:len(levels) - 1]) [ for(x = [0:len(levels[0]) - 1]) [x, -y, levels[y][x]] @@ -127,4 +126,4 @@ module image_slicer(levels, level_step, contour_width) { } } -image_slicer(levels, level_step, contour_width); \ No newline at end of file +image_slicer(levels, level_step); \ No newline at end of file