def _fd(pts): rect = shape.rectangle(pts, p1=[-1, -0.6], p2=[1, 0.6]) circle = shape.circle(pts, r=0.3) return shape.dist_diff(rect, circle)
def _fh(pts): return 0.05 + 0.05 * shape.circle(pts, r=0.3)
def _fd(pts): """ shape function """ return shape.circle(pts, pc=[0, 0], r=1.)
def _fd(pts): return shape.dist_diff(shape.circle(pts, r=0.7), shape.circle(pts, r=0.3))
def _fd(pts): """ _fd must centered at [0, 0] """ ellipse = shape.ellipse(pts, pc=[0, -0.6], ab=[1, 1.5]) circle = shape.circle(pts, pc=[0, 0], r=1) return shape.dist_intersect(ellipse, circle)
def _fd(pts): return shape.ddiff(shape.rectangle(pts, p1=[-1, -0.6], p2=[1, 0.6]), shape.circle(pts, r=0.3))
def _fd(pts): return shape.ddiff(shape.circle(pts, r=0.7), shape.circle(pts, r=0.3))
def _fd(pts): """ _fd must centered at [0, 0] """ return shape.dintersect(shape.ellipse(pts, pc=[0, -0.6], ab=[1, 1.5]), shape.circle(pts, pc=[0, 0], r=1))
def _fd(pts): # return d2d.dcircle(pts, pc=[0, 0], r=1.) return shape.ddiff(shape.circle(pts, r=0.7), shape.circle(pts, r=0.3))