2016-11-04 12:14:52 +01:00
|
|
|
import libngpy
|
|
|
|
from libngpy._csg import *
|
2015-10-20 11:09:29 +02:00
|
|
|
import libngpy.csgvis as csgvis
|
|
|
|
from libngpy.csgvis import MouseMove
|
2016-11-04 12:14:52 +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):
|
2016-09-29 16:44:16 +02:00
|
|
|
if "mp" in args:
|
|
|
|
return GenerateMesh (geom, args["mp"])
|
|
|
|
else:
|
|
|
|
return GenerateMesh (geom, MeshingParameters (**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)))
|
|
|
|
|