netgen/python/csg.py
Christoph Wintersteiger e56d845f17 windows fix
2014-10-13 10:25:31 +00:00

23 lines
551 B
Python

from netgen import __platform
if __platform.startswith('linux') or __platform.startswith('darwin'):
# Linux or Mac OS X
from libcsg.csg import *
import libcsgvis.csgvis as csgvis
from libcsgvis.csgvis import MouseMove
import libmesh.meshing
# from libmesh.meshing import *
if __platform.startswith('win'):
# Windows
from nglib.csg import *
import nglib.csgvis as csgvis
from nglib.csgvis import MouseMove
from nglib.meshing import *
CSGeometry.VS = csgvis.VS
del csgvis
def VS (obj):
return obj.VS()