fix issues with OpenCascade

This commit is contained in:
Matthias Hochsteger 2016-02-15 08:55:49 +01:00
parent 7f8818b8f1
commit 395a8f6d0c
3 changed files with 16 additions and 12 deletions

View File

@ -1034,17 +1034,17 @@ namespace netgen
void OCCGeometry :: WriteOCC_STL(char * filename) // void OCCGeometry :: WriteOCC_STL(char * filename)
{ // {
cout << "writing stl..."; cout.flush(); // cout << "writing stl..."; cout.flush();
StlAPI_Writer writer; // StlAPI_Writer writer;
writer.RelativeMode() = Standard_False; // writer.RelativeMode() = Standard_False;
//
writer.SetDeflection(0.02); // writer.SetDeflection(0.02);
writer.Write(shape,filename); // writer.Write(shape,filename);
//
cout << "done" << endl; // cout << "done" << endl;
} // }

View File

@ -385,7 +385,7 @@ namespace netgen
void GetNotDrawableFaces (stringstream & str); void GetNotDrawableFaces (stringstream & str);
bool ErrorInSurfaceMeshing (); bool ErrorInSurfaceMeshing ();
void WriteOCC_STL(char * filename); // void WriteOCC_STL(char * filename);
virtual int GenerateMesh (shared_ptr<Mesh> & mesh, MeshingParameters & mparam, virtual int GenerateMesh (shared_ptr<Mesh> & mesh, MeshingParameters & mparam,
int perfstepsstart, int perfstepsend); int perfstepsstart, int perfstepsend);

View File

@ -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} ) 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) if(USE_PYTHON)
target_link_libraries(nglib ${PYTHON_LIBS}) target_link_libraries(nglib ${PYTHON_LIBS})
endif(USE_PYTHON) endif(USE_PYTHON)