netgen/python/csg.py

25 lines
484 B
Python
Raw Normal View History

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