2016-11-04 16:14:52 +05:00
|
|
|
import libngpy
|
|
|
|
from libngpy._csg import *
|
2015-10-20 14:09:29 +05:00
|
|
|
import libngpy.csgvis as csgvis
|
|
|
|
from libngpy.csgvis import MouseMove
|
2016-11-04 16:14:52 +05:00
|
|
|
from libngpy._meshing import MeshingParameters
|
2017-01-05 09:08:24 +05:00
|
|
|
from libngpy._meshing import Pnt
|
2017-01-10 22:38:36 +05:00
|
|
|
from libngpy._meshing import Vec
|
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):
|
2016-09-29 19:44:16 +05:00
|
|
|
if "mp" in args:
|
|
|
|
return GenerateMesh (geom, args["mp"])
|
|
|
|
else:
|
|
|
|
return GenerateMesh (geom, MeshingParameters (**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)))
|
|
|
|
|