mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 21:30:35 +05:00
test occ files only when compiled with support
This commit is contained in:
parent
8855bc8652
commit
80aabd4110
@ -4,7 +4,11 @@ from netgen.meshing import meshsize, MeshingParameters, SetMessageImportance
|
|||||||
import netgen.gui
|
import netgen.gui
|
||||||
import netgen.csg as csg
|
import netgen.csg as csg
|
||||||
import netgen.stl as stl
|
import netgen.stl as stl
|
||||||
import netgen.occ as occ
|
try:
|
||||||
|
import netgen.occ as occ
|
||||||
|
has_occ = True
|
||||||
|
except ImportError:
|
||||||
|
has_occ = False
|
||||||
from results import *
|
from results import *
|
||||||
|
|
||||||
SetMessageImportance(0)
|
SetMessageImportance(0)
|
||||||
@ -43,7 +47,9 @@ def getMeshingparameters(filename):
|
|||||||
return standard
|
return standard
|
||||||
|
|
||||||
# TODO: step files do not respect gui meshsizes yet.
|
# TODO: step files do not respect gui meshsizes yet.
|
||||||
_geofiles = [f for f in getFiles(".geo")] + [f for f in getFiles(".stl")] + [f for f in getFiles(".step")]
|
_geofiles = [f for f in getFiles(".geo")] + [f for f in getFiles(".stl")]
|
||||||
|
if has_occ:
|
||||||
|
_geofiles += [f for f in getFiles(".step")]
|
||||||
|
|
||||||
|
|
||||||
def generateMesh(filename, mp):
|
def generateMesh(filename, mp):
|
||||||
|
Loading…
Reference in New Issue
Block a user