mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
fix issues with OpenCascade
This commit is contained in:
parent
7f8818b8f1
commit
395a8f6d0c
@ -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;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user