Skip to content
Snippets Groups Projects
Commit 4dc6b6b1 authored by Boman Romain's avatar Boman Romain
Browse files

test with new gmsh (should be corrected in Metafor)

parent 94024d81
No related branches found
No related tags found
No related merge requests found
......@@ -286,12 +286,15 @@ def import_mesh(domain, filename, use_gmshOld=True):
raise Exception(f'Unknown extension: {ext}, please use .ply, .stl, .msh or .geo')
print(f'importing {mandible_gmsh}')
f = os.path.join(os.path.dirname(__file__), mandible_gmsh)
if use_gmshOld:
from toolbox.gmshOld import GmshImport
mesher = GmshImport(f, domain)
else:
from toolbox.gmsh import GmshImport # FIXME: does not work!
f = os.path.join(os.path.dirname(__file__), mandible_gmsh)
mesher = GmshImport(f, domain)
mesher = GmshImport(f, domain)
# mesher.verb = True # debug
mesher.writeMshFile = True
mesher.execute()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment