netgen/tests/pytest/meshes.py
2019-08-12 17:47:50 +02:00

12 lines
247 B
Python

import pytest
@pytest.fixture
def unit_mesh_2d():
import netgen.geom2d as g2d
return g2d.unit_square.GenerateMesh(maxh=0.2)
@pytest.fixture
def unit_mesh_3d():
import netgen.csg as csg
return csg.unit_cube.GenerateMesh(maxh=0.2)