netgen/py_tutorials/mesh.py
Joachim Schoeberl 8c4b7151a7 csg - python
2014-12-09 12:01:39 +00:00

19 lines
269 B
Python

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")
Save (m1, "mesh.vol", geo)