Example #1
0
 def updatenormpath(self, normpath, context):
     if normpath.normsubpaths[-1].epsilon is not None:
         normpath.append(normsubpath([normline_pt(self.x_pt, self.y_pt, self.x_pt, self.y_pt)],
                                     epsilon=normpath.normsubpaths[-1].epsilon))
     else:
         normpath.append(normsubpath(epsilon=normpath.normsubpaths[-1].epsilon))
     context.x_pt = context.subfirstx_pt = self.x_pt
     context.y_pt = context.subfirsty_pt = self.y_pt
Example #2
0
 def updatenormpath(self, normpath, context):
     if normpath.normsubpaths[-1].closed:
         normpath.append(normsubpath([normline_pt(context.x_pt, context.y_pt,
                                                      *_arcpoint(self.x_pt, self.y_pt, self.r_pt, self.angle1))],
                                     epsilon=normpath.normsubpaths[-1].epsilon))
     else:
         normpath.normsubpaths[-1].append(normline_pt(context.x_pt, context.y_pt,
                                                      *_arcpoint(self.x_pt, self.y_pt, self.r_pt, self.angle1)))
     normpath.normsubpaths[-1].extend(_arctobezierpath(self.x_pt, self.y_pt, self.r_pt, self.angle1, self.angle2))
     context.x_pt, context.y_pt = _arcpoint(self.x_pt, self.y_pt, self.r_pt, self.angle2)
Example #3
0
 def updatenormpath(self, normpath, context):
     if normpath.normsubpaths[-1].closed:
         normpath.append(normsubpath([normline_pt(context.x_pt, context.y_pt,
                                                      *_arcpoint(self.x_pt, self.y_pt, self.r_pt, self.angle1))],
                                     epsilon=normpath.normsubpaths[-1].epsilon))
     else:
         normpath.normsubpaths[-1].append(normline_pt(context.x_pt, context.y_pt,
                                                      *_arcpoint(self.x_pt, self.y_pt, self.r_pt, self.angle1)))
     bpathitems = _arctobezierpath(self.x_pt, self.y_pt, self.r_pt, self.angle2, self.angle1)
     bpathitems.reverse()
     for bpathitem in bpathitems:
         normpath.normsubpaths[-1].append(bpathitem.reversed())
     context.x_pt, context.y_pt = _arcpoint(self.x_pt, self.y_pt, self.r_pt, self.angle2)