from pythonscad import * from pylibfive import * c = lv_coord() s1 = lv_sphere(lv_trans(c, [2, 2, 2]), 1) b1 = lv_box(c, [2 + 1 * lv.sin(c[1] + c[2]), 2, 2]) sdf = lv_union_stairs(s1, b1, 0.4, 3) fobj = frep(sdf, [-4, -4, -4], [4, 4, 4], 20) show(fobj)