Hi,
you are right, the meshing parameters from Python were ignored for the occ geometry. This is fixed in the upcoming nightly release. We have included some further changes/improvements/syntactic sugar:
The occ module should now be included using netgen.occ, geometries constructed by the constructor taking the filename as argument.
Code:
from netgen.occ import *
geo = OCCGeometry("brick.step")
This constructor now understands .brep, .iges, .step and .stp files.
One can now use meshing parameters as given in the gui, by the helper variable meshsize:
Code:
geo.GenerateMesh(meshsize.very_fine)
you can give additional meshsize parameters as kwargs as well:
Code:
geo.GenerateMesh(meshsize.coarse, maxh=0.2)
There is a docstring about available meshing and optimization parameters if you query GenerateMesh for its help:
Code:
help(geo.GenerateMesh)
Hope that helps and let us know if you run into problems.
Best
Christopher