call with python, sometimes there is no meshing

More
3 years 11 months ago #3440 by mariopa
hello guys,

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')

regards, mario
More
3 years 10 months ago #3451 by mariopa
No solution for my problem?

I can not solve this problem myself, hopefully anyone here who knows what to do?

thx much,

regards,mario
More
3 years 10 months ago #3452 by mariopa
a i think i got it!

the problem was the filename "ß" "ö" "ä" "ü".... ngsolve does not like this!
More
3 years 9 months ago #3518 by mariopa
Hey guys,

OMG i still have those problems, it is not only because of "ß" "ö" "ä" "ü"....

Complex *.stp files are meshing very fine "by hand". I start ngsolve, do the mesh settings and all is perfect!

but calling it automaticly with pyhton (see my first post) it does not work.

Anyone has an idea?

Hopefully anyone can help me, I really do not know what I have to do, to solve this problem.

thank much,

regard, mario
More
3 years 9 months ago #3519 by christopher
Hi Mario,
can you give an example of a failing step file?

Best
Christopher
More
3 years 9 months ago - 3 years 9 months ago #3520 by mariopa
Hello,

of course, see Attachments.

regards, mario
Last edit: 3 years 9 months ago by mariopa.
Time to create page: 0.103 seconds