Пример #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)
Пример #2
0
 def _fh(pts):
     return 0.05 + 0.05 * shape.circle(pts, r=0.3)
Пример #3
0
 def _fd(pts):
     """ shape function """
     return shape.circle(pts, pc=[0, 0], r=1.)
Пример #4
0
 def _fd(pts):
     return shape.dist_diff(shape.circle(pts, r=0.7),
                            shape.circle(pts, r=0.3))
Пример #5
0
 def _fh(pts):
     return 0.05 + 0.05 * shape.circle(pts, r=0.3)
Пример #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)
Пример #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))
Пример #8
0
 def _fd(pts):
     return shape.ddiff(shape.circle(pts, r=0.7),
                        shape.circle(pts, r=0.3))
Пример #9
0
 def _fd(pts):
     """ shape function """
     return shape.circle(pts, pc=[0, 0], r=1.)
Пример #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))
Пример #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))