示例#1
0
 def pop(self, workplane: cq.Workplane) -> cq.Workplane:
     wp = workplane.center(-self.x, -self.y)
     self.x = 0
     self.y = 0
     return wp
示例#2
0
 def pop_line(self, workplane: cq.Workplane) -> cq.Workplane:
     wp = workplane.lineTo(-self.line_x, -self.line_y)
     wp = workplane.center(-self.line_x, -self.line_y)
     self.line_x = 0
     self.line_y = 0
     return wp.close()
示例#3
0
 def push_raw(self, workplane: cq.Workplane, x: float,
              y: float) -> cq.Workplane:
     self.x += x
     self.y += y
     return workplane.center(x, y)