From b01e0e25c0bb5eeb7bf4b1a50d1bfd2677df7e6b Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 1 Nov 2009 12:02:05 +0000 Subject: [PATCH] refinement also for occ --- nglib/Makefile.am | 3 +-- nglib/nglib.cpp | 9 +++++++++ nglib/nglib.h | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) 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