示例#1
0
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)
示例#2
0
def cyl(x, y, z):
    rad = 1
    center = [3, 3]
    r = dist([x, y], center)
    return (r < rad)
示例#3
0
def sphere(x, y, z):
    rad = 1
    center = [0, 0, 0]
    r = dist([x, y, z], center)
    return (r < rad)