mirror of
https://github.com/NGSolve/netgen.git
synced 2026-06-16 00:20:34 +08:00
nglib-python restructuring
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 *
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user