mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
22 lines
291 B
Python
22 lines
291 B
Python
import sys
|
|
sys.path.append("/opt/netgen/lib")
|
|
|
|
from libmesh.meshing import *
|
|
from libcsg.csg import *
|
|
|
|
|
|
geo = CSGeometry("shaft.geo")
|
|
|
|
param = MeshingParameters()
|
|
param.maxh = 10
|
|
print (param)
|
|
|
|
m1 = GenerateMesh (geo, param)
|
|
|
|
|
|
import exportNeutral
|
|
exportNeutral.Export (m1, "shaft.mesh")
|
|
|
|
|
|
|