def test_solid_reorder_quad_ocs_vertices(): solid = Solid() for index, vertex in enumerate([(0, 0), (1, 0), (0, 1), (1, 1)]): solid[index] = vertex # reorder weird vertex order: assert solid.vertices() == [(0, 0), (1, 0), (1, 1), (0, 1)]
def test_solid_close_quad_ocs_vertices(): solid = Solid() for index, vertex in enumerate([(0, 0), (1, 0), (1, 1), (0, 1)]): solid[index] = vertex assert solid.vertices(close=True) == [ (0, 0), (1, 0), (0, 1), (1, 1), (0, 0), ]
def test_solid_triangle_ocs_vertices(): solid = Solid() for index, vertex in enumerate([(0, 0), (1, 0), (0, 1), (0, 1)]): solid[index] = vertex assert solid.vertices() == [(0, 0), (1, 0), (0, 1)]