It would probably be more interesting to have a lua function for that. Something using an outerbox function and read-only attributes for instance. ;-)
function slowdown_emit(a_shape)
ob = outerbox(a_shape)
size = ob.scale
size.z = first_layer_height
first_layer_box = translate(ob.center) * scale(size) * box(1)
emit(intersection(a_shape, first_layer_box), 1)
emit(difference(a_shape, first_layer_box), 0)
end
What do you think?
Regards,