def add_bbox(msp, box: BoundingBox, color: int): msp.add_lwpolyline(box.rect_vertices(), close=True, dxfattribs={"color": color})
def test_rect_vertices_returns_vertices_in_counter_clockwise_order(self): bbox = BoundingBox([(0, 0, 0), (1, 2, 3)]) assert bbox.rect_vertices() == Vec2.tuple([(0, 0), (1, 0), (1, 2), (0, 2)])