nglib-python restructuring

This commit is contained in:
Joachim Schöberl
2015-10-20 11:09:29 +02:00
parent c2517bdef5
commit e6157eecd8
10 changed files with 37 additions and 57 deletions

View File

@@ -6,6 +6,9 @@ if __platform.startswith('linux') or __platform.startswith('darwin'):
if __platform.startswith('win'):
path.append(environ['NETGENDIR'])
from libngpy import *
from . import csg
from . import meshing

View File

@@ -1,16 +1,7 @@
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
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 *
from libngpy.csg import *
import libngpy.csgvis as csgvis
from libngpy.csgvis import MouseMove
from libngpy.meshing import *
CSGeometry.VS = csgvis.VS

View File

@@ -1,16 +1,5 @@
from netgen import __platform
if __platform.startswith('linux') or __platform.startswith('darwin'):
# Linux or Mac OS X
from libgeom2d.geom2d import *
# import libcsgvis.csgvis as csgvis
# from libcsgvis.csgvis import MouseMove
from libmesh.meshing import *
if __platform.startswith('win'):
# Windows
from nglib.geom2d import *
# import nglib.csgvis as csgvis
# from nglib.csgvis import MouseMove
from nglib.meshing import *
from libngpy.geom2d import *
from libngpy.meshing import *

View File

@@ -1,7 +1 @@
from netgen import __platform
if __platform.startswith('linux') or __platform.startswith('darwin'):
# Linux or Mac OS X
from libmesh.meshing import *
if __platform.startswith('win'):
# Windows
from nglib.meshing import *
from libngpy.meshing import *