Esempio n. 1
0
 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)
Esempio n. 2
0
 def _fh(pts):
     return 0.05 + 0.05 * shape.circle(pts, r=0.3)
Esempio n. 3
0
 def _fd(pts):
     """ shape function """
     return shape.circle(pts, pc=[0, 0], r=1.)
Esempio n. 4
0
 def _fd(pts):
     return shape.dist_diff(shape.circle(pts, r=0.7),
                            shape.circle(pts, r=0.3))
Esempio n. 5
0
 def _fh(pts):
     return 0.05 + 0.05 * shape.circle(pts, r=0.3)
Esempio n. 6
0
 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)
Esempio n. 7
0
 def _fd(pts):
     return shape.ddiff(shape.rectangle(pts, p1=[-1, -0.6], p2=[1, 0.6]),
                        shape.circle(pts, r=0.3))
Esempio n. 8
0
 def _fd(pts):
     return shape.ddiff(shape.circle(pts, r=0.7),
                        shape.circle(pts, r=0.3))
Esempio n. 9
0
 def _fd(pts):
     """ shape function """
     return shape.circle(pts, pc=[0, 0], r=1.)
Esempio n. 10
0
 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))
Esempio n. 11
0
 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))