most of the time my python script/ngsolve works well, all fine, but with some *.stp parts there is following problem:
i call my python script, NGSolve starts. OK
I see the meshing progress in the statusbar bottom/right from NGSolve. OK
But the loaded *.stp part in NGSolve does not get a mesh, after the progress is ready there is no mesh it is still the normal loaded *.stp part.
What is wrong? (most of the time it works well, but with some parts it does not work).
The strange thing is if i click in NGSolve “Generate Mesh” by hand, all works fine!
Here is my python code, I really do not know what is wrong with it?
from netgen.occ import *
from netgen.meshing import MeshingStep
geo = OCCGeometry(“//L1/Test1/mail/user/ng/projects/user/abc/Teil_1.stp”)
mesh = geo.GenerateMesh(meshsize.very_coarse, perfstepsstart=MeshingStep.ANALYSE, perfstepsend=MeshingStep.MESHSURFACE)
Draw(Mesh(mesh))
mesh.Export(“//L1/Test1/mail/user/ng/projects/user/abc/Teil_1.stl”, ‘STL Format’)
Hi, I can reproduce the issue and I think it is a bug in the meshsize restriction from the curvature (or in the curvature computation in occ). I hope I have some time to track it down the coming week or so.
Best
Christopher
Hi, sorry didn’t have much time. This seems to be a bug with opencascade. When I use freecad to extract surface 25+29 from the geometry and export it as step then it messes up the geometry too. Maybe someone can help you there or in the occ forums. For me steps to reproduce were
Load the geometry in Freecad → select face 25 and 29 → in Draft click create Facebinder from selected surfaces → Click the newly created object and export it to step file → Load it again. → See that edge parametrization is screwed up.
Because of this occ bug netgen fails too.