refinement also for occ

This commit is contained in:
Joachim Schoeberl 2009-11-01 12:02:05 +00:00
parent dfebc96d49
commit b01e0e25c0
3 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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