Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
4955b56f
Commit
4955b56f
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
f8be66e8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
utils/api_demos/mainOcc.cpp
+14
-2
14 additions, 2 deletions
utils/api_demos/mainOcc.cpp
with
15 additions
and
3 deletions
Makefile
+
1
−
1
View file @
4955b56f
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
utils/api_demos/mainOcc.cpp
+
14
−
2
View file @
4955b56f
// 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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment