1234567891011121314151617 |
- class TunDrawer:
- def __init__(self, msp, layer, color, vec12, vec34, from_point, to_point):
- self.msp = msp
- self.layer = layer
- self.color = color
- self.vec12 = vec12
- self.vec34 = vec34
- self.from_point = from_point
- self.to_point = to_point
- def draw_tun(self):
- self.msp.add_line(self.vec12[0], self.vec12[1], dxfattribs={
- 'color': self.color
- })
- self.msp.add_line(self.vec34[0], self.vec34[1], dxfattribs={
- 'color': self.color
- })
|