def pop(self, workplane: cq.Workplane) -> cq.Workplane: wp = workplane.center(-self.x, -self.y) self.x = 0 self.y = 0 return wp
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()
def push_raw(self, workplane: cq.Workplane, x: float, y: float) -> cq.Workplane: self.x += x self.y += y return workplane.center(x, y)