예제 #1
0
def add_bbox(msp, box: BoundingBox, color: int):
    msp.add_lwpolyline(box.rect_vertices(),
                       close=True,
                       dxfattribs={"color": color})
예제 #2
0
 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)])