mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 14:20:34 +05:00
12 lines
319 B
Python
12 lines
319 B
Python
|
import libngpy
|
||
|
from libngpy._NgOCC import *
|
||
|
from libngpy._meshing import MeshingParameters
|
||
|
|
||
|
def NgOCC_meshing_func (geom, **args):
|
||
|
if "mp" in args:
|
||
|
return GenerateMesh (geom, args["mp"])
|
||
|
else:
|
||
|
return GenerateMesh (geom, MeshingParameters (**args))
|
||
|
|
||
|
OCCGeometry.GenerateMesh = NgOCC_meshing_func
|