Hello,
I just tried the following python script:
from netgen.occ import *
geo = OCCGeometry("//STI01/STIWA/mail/ParM/ng/projects/parm/abc/Schuettblech.stp")
mesh = geo.GenerateMesh(meshsize.very_coarse, perfstepsstart=MESHCONST_ANALYSE, perfstepsend=MESHCONST_OPTSURFACE, curvaturesafety=5)
Draw(Mesh(mesh))
mesh.Export("//.................stl", 'STL Format')
does not work
--> 'MESHCONST_ANALYSE' is not defined
what I did wrong?
(should) load python file '\\STI01\STIWA\mail\ParM\ng\projects\parm\abc\tmp.py'
Traceback (most recent call last):
File "<string>", line 2, in <module>
FileNotFoundError: [WinError 3] Das System kann den angegebenen Pfad nicht finden: 'C:\\STI01\\STIWA\\mail\\ParM\ng\\projects'
Number of colours in STEP File: 1
Colour [1] = LIGHTBLUE3 : (0.654902,0.760784,0.788235)
Highest entry in topology hierarchy:
1 solid(s)
Traceback (most recent call last):
File "<string>", line 3, in <module>
NameError: name 'MESHCONST_ANALYSE' is not defined
Finished executing \\....................py
Preparing visualization (deflection = 0.01) ... done