mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 06:10:34 +05:00
11 lines
318 B
Python
11 lines
318 B
Python
from netgen.libngpy._NgOCC import *
|
|
from netgen.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
|