diff --git a/nglib/Makefile.am b/nglib/Makefile.am index 667cef5f..2dadc8b2 100644 --- a/nglib/Makefile.am +++ b/nglib/Makefile.am @@ -2,8 +2,7 @@ include_HEADERS = nglib.h dist_pkgdata_DATA = cube.surf -AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(MPI_INCLUDES) -# $(OCCFLAGS) +AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(MPI_INCLUDES) $(OCCFLAGS) lib_LTLIBRARIES = libnglib.la libnglib_la_SOURCES = nglib.cpp diff --git a/nglib/nglib.cpp b/nglib/nglib.cpp index 7e531409..659d21d0 100644 --- a/nglib/nglib.cpp +++ b/nglib/nglib.cpp @@ -923,6 +923,15 @@ namespace nglib } +#ifdef OCCGEOMETRY + DLL_HEADER void Ng_OCC_Uniform_Refinement (Ng_OCC_Geometry * geom, + Ng_Mesh * mesh) + { + ( (OCCGeometry*)geom ) -> GetRefinement().Refine ( * (Mesh*) mesh ); + } +#endif + + } // End of namespace nglib diff --git a/nglib/nglib.h b/nglib/nglib.h index 92028572..d06d0224 100644 --- a/nglib/nglib.h +++ b/nglib/nglib.h @@ -656,6 +656,10 @@ DLL_HEADER void Ng_STL_Uniform_Refinement (Ng_STL_Geometry * geom, DLL_HEADER void Ng_CSG_Uniform_Refinement (Ng_CSG_Geometry * geom, Ng_Mesh * mesh); +#ifdef OCCGEOMETRY +DLL_HEADER void Ng_OCC_Uniform_Refinement (Ng_OCC_Geometry * geom, + Ng_Mesh * mesh); +#endif