mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
14 lines
375 B
Python
14 lines
375 B
Python
|
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
|