diff --git a/nglib/Makefile.am b/nglib/Makefile.am index 2dadc8b2..d8320e6a 100644 --- a/nglib/Makefile.am +++ b/nglib/Makefile.am @@ -23,7 +23,7 @@ libnglib_la_LDFLAGS = -avoid-version # -rdynamic -bin_PROGRAMS = ng_vol ng_stl +bin_PROGRAMS = ng_vol ng_stl ng_occ ng_vol_SOURCES = ng_vol.cpp ng_vol_LDADD = \ libnglib.la @@ -32,3 +32,8 @@ ng_stl_LDADD = \ libnglib.la +ng_occ_SOURCES = ng_occ.cpp +ng_occ_LDADD = \ + libnglib.la + + diff --git a/nglib/nglib.cpp b/nglib/nglib.cpp index 3ef81549..80fb5812 100644 --- a/nglib/nglib.cpp +++ b/nglib/nglib.cpp @@ -712,6 +712,8 @@ namespace nglib OCCGeometry * occgeom = (OCCGeometry*)geom; Mesh * me = (Mesh*)mesh; + me->geomtype = Mesh::GEOM_OCC; + mparam.uselocalh = mp->uselocalh; mparam.maxh = mp->maxh; @@ -726,8 +728,11 @@ namespace nglib occparam.resthcloseedgeenable = mp->closeedgeenable; occparam.resthcloseedgefac = mp->closeedgefact; + /* delete me; me = new Mesh; + */ + me -> DeleteMesh(); OCCSetLocalMeshSize(*occgeom, *me);