def test_plot2d(): bary, cells = meshzoo.triangle(4) meshzoo.show2d(_get_points(bary), cells)
def test_center(): points, cells = meshzoo.rectangle(nx=11, ny=9, variant="center") meshzoo.show2d(points, cells) assert len(points) == 99 assert len(cells) == 160
def test_plot2d(): points, cells = meshzoo.triangle(4) meshzoo.show2d(points, cells) return
def test_center(): points, cells = meshzoo.rectangle_tri((0, 0), (1, 1), (11, 9), variant="center") meshzoo.show2d(points, cells) assert len(points) == 99 assert len(cells) == 160 assert np.all(_get_signed_areas(points.T, cells) > 0.0)