def two_sphere(x, y, z): rad1 = 1 center1 = [1, 0, 0] rad2 = 1 center2 = [-1, 0, 0] r = min(dist([x, y, z], center1), dist([x, y, z], center2)) return (r < rad)
def cyl(x, y, z): rad = 1 center = [3, 3] r = dist([x, y], center) return (r < rad)
def sphere(x, y, z): rad = 1 center = [0, 0, 0] r = dist([x, y, z], center) return (r < rad)