netgen/python/geom2d.py

12 lines
196 B
Python
Raw Normal View History

2014-09-10 17:17:37 +06:00
from nglib.meshing import *
from nglib.geom2d import *
2015-07-29 23:39:04 +05:00
geom = SplineGeometry()
2014-09-10 17:17:37 +06:00
geom.Load("square.in2d")
param = MeshingParameters()
param.maxh = 0.05
2015-07-29 23:39:04 +05:00
m1 = geom.GenerateMesh (param)