示例#1
0
def test_plot2d():
    bary, cells = meshzoo.triangle(4)
    meshzoo.show2d(_get_points(bary), cells)
示例#2
0
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
示例#3
0
def test_plot2d():
    points, cells = meshzoo.triangle(4)
    meshzoo.show2d(points, cells)
    return
示例#4
0
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)