netgen/python/csg.py

25 lines
468 B
Python
Raw Normal View History

2015-10-20 14:09:29 +05:00
from libngpy.csg import *
import libngpy.csgvis as csgvis
from libngpy.csgvis import MouseMove
from libngpy.meshing import *
2014-10-10 17:18:51 +06:00
CSGeometry.VS = csgvis.VS
2015-09-01 02:45:34 +05:00
SetBackGroundColor = csgvis.SetBackGroundColor
2014-10-10 17:18:51 +06:00
del csgvis
def VS (obj):
return obj.VS()
2015-07-29 23:39:04 +05:00
2015-08-08 15:58:41 +05:00
def csg_meshing_func (geom, **args):
return GenerateMesh (geom, MeshingParameters (**args))
2015-07-29 23:39:04 +05:00
CSGeometry.GenerateMesh = csg_meshing_func
unit_cube = CSGeometry()
unit_cube.Add (OrthoBrick(Pnt(0,0,0), Pnt(1,1,1)))