mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
19 lines
269 B
Python
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)
|