From 1b9374338299b4de0258d0aaaae723be7e4687c6 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 26 Sep 2014 14:06:39 +0000 Subject: [PATCH] netgen module for python --- nglib/Makefile.am | 1 + nglib/netgen.py | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 nglib/netgen.py diff --git a/nglib/Makefile.am b/nglib/Makefile.am index 833b56f8..f4ebb9f3 100644 --- a/nglib/Makefile.am +++ b/nglib/Makefile.am @@ -48,4 +48,5 @@ ng_stl_LDADD = libnglib.la \ # ng_occ_SOURCES = ng_occ.cpp # ng_occ_LDADD = libnglib.la +dist_bin_SCRIPTS = netgen.py diff --git a/nglib/netgen.py b/nglib/netgen.py new file mode 100644 index 00000000..759ebb2d --- /dev/null +++ b/nglib/netgen.py @@ -0,0 +1,9 @@ +try: + # Linux + from libmesh import meshing + from libgeom2d import geom2d + from libcsg import csg +except: + # Windows + from nglib import * +