Skip to content
Snippets Groups Projects
Commit 4955b56f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent f8be66e8
No related branches found
No related tags found
No related merge requests found
...@@ -262,7 +262,7 @@ source-tree: purge ...@@ -262,7 +262,7 @@ source-tree: purge
source: source-tree source: source-tree
cd gmsh-${GMSH_VERSION} && rm -rf ${GMSH_VERSION_FILE}\ cd gmsh-${GMSH_VERSION} && rm -rf ${GMSH_VERSION_FILE}\
Common/GmshConfig.h contrib/Tetgen/*.{cxx,h}\ Common/GmshConfig.h contrib/Tetgen*/*.{cxx,h}\
utils/nightly utils/misc/variables.i* utils/nightly utils/misc/variables.i*
tar zcf gmsh-${GMSH_VERSION}-source.tgz gmsh-${GMSH_VERSION} tar zcf gmsh-${GMSH_VERSION}-source.tgz gmsh-${GMSH_VERSION}
......
// g++ -I/usr/local/opencascade/inc driverOCC.cpp -lGmsh -L/usr/local/opencascade/lib -lTKSTEP -lTKSTEP209 -lTKSTEPAttr -lTKSTEPBase -lTKIGES -lTKXSBase -lTKOffset -lTKFeat -lTKFillet -lTKBool -lTKShHealing -lTKMesh -lTKHLR -lTKBO -lTKPrim -lTKTopAlgo -lTKGeomAlgo -lTKBRep -lTKGeomBase -lTKG3d -lTKG2d -lTKAdvTools -lTKMath -lTKernel -lm // This demonstrates how to import an OpenCascade model WITHOUT using
// Gmsh's own I/O layer (useful if you create OCC objects in your own
// code, that you want to import dynamically in Gmsh).
//
// If you just want to load OpenCascade files (.brep, .step, etc.) you
// SHOULD NOT use this interface: simply use the standard I/O API.
// g++ -I/usr/local/opencascade/inc driverOCC.cpp -lGmsh
// -L/usr/local/opencascade/lib -lTKSTEP -lTKSTEP209 -lTKSTEPAttr
// -lTKSTEPBase -lTKIGES -lTKXSBase -lTKOffset -lTKFeat -lTKFillet
// -lTKBool -lTKShHealing -lTKMesh -lTKHLR -lTKBO -lTKPrim -lTKTopAlgo
// -lTKGeomAlgo -lTKBRep -lTKGeomBase -lTKG3d -lTKG2d -lTKAdvTools
// -lTKMath -lTKernel -lm
#include <stdio.h> #include <stdio.h>
#include <gmsh/Gmsh.h> #include <gmsh/Gmsh.h>
...@@ -53,7 +65,7 @@ int main(int argc, char **argv) ...@@ -53,7 +65,7 @@ int main(int argc, char **argv)
GmshSetMessageHandler(&c); GmshSetMessageHandler(&c);
// import the shape, and mesh it // import the shape, and mesh it
m.importOCCShape((void*)&shape, 0); m.importOCCShape((void*)&shape);
try{ try{
m.mesh(2); m.mesh(2);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment