diff --git a/libsrc/occ/occgeom.cpp b/libsrc/occ/occgeom.cpp index 14589d93..f2527d9c 100644 --- a/libsrc/occ/occgeom.cpp +++ b/libsrc/occ/occgeom.cpp @@ -1034,17 +1034,17 @@ namespace netgen - void OCCGeometry :: WriteOCC_STL(char * filename) - { - cout << "writing stl..."; cout.flush(); - StlAPI_Writer writer; - writer.RelativeMode() = Standard_False; - - writer.SetDeflection(0.02); - writer.Write(shape,filename); - - cout << "done" << endl; - } +// void OCCGeometry :: WriteOCC_STL(char * filename) +// { +// cout << "writing stl..."; cout.flush(); +// StlAPI_Writer writer; +// writer.RelativeMode() = Standard_False; +// +// writer.SetDeflection(0.02); +// writer.Write(shape,filename); +// +// cout << "done" << endl; +// } diff --git a/libsrc/occ/occgeom.hpp b/libsrc/occ/occgeom.hpp index a00b49d8..ffa9f5f4 100644 --- a/libsrc/occ/occgeom.hpp +++ b/libsrc/occ/occgeom.hpp @@ -385,7 +385,7 @@ namespace netgen void GetNotDrawableFaces (stringstream & str); bool ErrorInSurfaceMeshing (); - void WriteOCC_STL(char * filename); +// void WriteOCC_STL(char * filename); virtual int GenerateMesh (shared_ptr & mesh, MeshingParameters & mparam, int perfstepsstart, int perfstepsend); diff --git a/nglib/CMakeLists.txt b/nglib/CMakeLists.txt index c1c0834f..79967a46 100644 --- a/nglib/CMakeLists.txt +++ b/nglib/CMakeLists.txt @@ -26,6 +26,10 @@ endif(NOT WIN32) target_link_libraries( nglib ${LIBPTHREAD} ${OCC_LIBRARIES} ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ${TK_LIBRARY} ${TCL_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${X11_Xmu_LIB} ${JPEG_LIBRARIES} ${MKL_LIBRARIES} ${ZLIB_LIBRARIES} ) +if(USE_OCC) + target_link_libraries(nglib occ) +endif(USE_OCC) + if(USE_PYTHON) target_link_libraries(nglib ${PYTHON_LIBS}) endif(USE_PYTHON)