netgen/py_tutorials/mesh.py

18 lines
242 B
Python
Raw Normal View History

2014-10-01 19:52:58 +06:00
from netgen.meshing import *
from netgen.csg import *
geo = CSGeometry("shaft.geo")
param = MeshingParameters()
param.maxh = 10
print (param)
m1 = GenerateMesh (geo, param)
import exportNeutral
exportNeutral.Export (m1, "shaft.mesh")