netgen/python/stl.py

14 lines
375 B
Python
Raw Normal View History

2016-12-09 20:34:22 +05:00
import libngpy
from libngpy._stl import *
from libngpy._meshing import MeshingParameters
def stl_meshing_func (geom, **args):
if "mp" in args:
return GenerateMesh (geom, args["mp"])
else:
return GenerateMesh (geom, MeshingParameters (**args))
# return GenerateMesh (geom, MeshingParameters (**args))
STLGeometry.GenerateMesh = stl_meshing_func