2014-10-02 18:29:55 +06:00
|
|
|
from netgen import __platform
|
|
|
|
if __platform.startswith('linux') or __platform.startswith('darwin'):
|
2014-10-02 17:10:40 +06:00
|
|
|
# Linux or Mac OS X
|
2014-10-01 16:31:22 +06:00
|
|
|
from libcsg.csg import *
|
2014-10-10 17:18:51 +06:00
|
|
|
import libcsgvis.csgvis as csgvis
|
|
|
|
from libcsgvis.csgvis import MouseMove
|
2014-10-06 15:57:44 +06:00
|
|
|
import libmesh.meshing
|
|
|
|
# from libmesh.meshing import *
|
2014-10-02 18:29:55 +06:00
|
|
|
if __platform.startswith('win'):
|
2014-10-01 16:31:22 +06:00
|
|
|
# Windows
|
|
|
|
from nglib.csg import *
|
2014-10-08 19:37:37 +06:00
|
|
|
from nglib.csgvis import *
|
2014-10-01 16:31:22 +06:00
|
|
|
from nglib.meshing import *
|
2014-10-10 17:18:51 +06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSGeometry.VS = csgvis.VS
|
|
|
|
del csgvis
|
|
|
|
|
|
|
|
def VS (obj):
|
|
|
|
return obj.VS()
|
|
|
|
|