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
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
dfa2ab56
Commit
dfa2ab56
authored
7 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
prepare dllexports
parent
238b4b77
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Common/GmshAPI.h
+30
-24
30 additions, 24 deletions
Common/GmshAPI.h
with
30 additions
and
24 deletions
Common/GmshAPI.h
+
30
−
24
View file @
dfa2ab56
...
@@ -17,6 +17,12 @@
...
@@ -17,6 +17,12 @@
#ifndef _GMSH_API_H_
#ifndef _GMSH_API_H_
#define _GMSH_API_H_
#define _GMSH_API_H_
#if defined(WIN32)
#define GMSH_API __declspec(dllexport) int
#else
#define GMSH_API int
#endif
typedef
struct
gmshEntity
{
int
dim
,
tag
;
};
typedef
struct
gmshEntity
{
int
dim
,
tag
;
};
typedef
struct
gmshIntVector
{
int
n
;
int
*
v
;
};
typedef
struct
gmshIntVector
{
int
n
;
int
*
v
;
};
typedef
struct
gmshDoubleVector
{
int
n
;
double
*
v
;
};
typedef
struct
gmshDoubleVector
{
int
n
;
double
*
v
;
};
...
@@ -27,38 +33,38 @@ typedef struct gmshEntityVector{ int n; gmshEntity *v; };
...
@@ -27,38 +33,38 @@ typedef struct gmshEntityVector{ int n; gmshEntity *v; };
extern
"C"
extern
"C"
{
{
/* Gmsh */
/* Gmsh */
int
gmshInitialize
(
int
argc
,
char
**
argv
);
GMSH_API
gmshInitialize
(
int
argc
,
char
**
argv
);
int
gmshFinalize
();
GMSH_API
gmshFinalize
();
int
gmshOpen
(
const
char
*
fileName
);
GMSH_API
gmshOpen
(
const
char
*
fileName
);
int
gmshMerge
(
const
char
*
fileName
);
GMSH_API
gmshMerge
(
const
char
*
fileName
);
int
gmshExport
(
const
char
*
fileName
);
GMSH_API
gmshExport
(
const
char
*
fileName
);
int
gmshClear
();
GMSH_API
gmshClear
();
/* Gmsh Options */
/* Gmsh Options */
int
gmshOptionsSetNumber
(
const
char
*
name
,
double
value
);
GMSH_API
gmshOptionsSetNumber
(
const
char
*
name
,
double
value
);
int
gmshOptionsGetNumber
(
const
char
*
name
,
double
*
value
);
GMSH_API
gmshOptionsGetNumber
(
const
char
*
name
,
double
*
value
);
/* Gmsh Model */
/* Gmsh Model */
int
gmshModelCreate
(
const
char
*
name
);
GMSH_API
gmshModelCreate
(
const
char
*
name
);
int
gmshModelSetCurrent
(
const
char
*
name
);
GMSH_API
gmshModelSetCurrent
(
const
char
*
name
);
int
gmshModelDestroy
();
GMSH_API
gmshModelDestroy
();
int
gmshModelMesh
(
int
dim
);
GMSH_API
gmshModelMesh
(
int
dim
);
int
gmshModelAddEmbeddedVertex
(
int
tag
,
int
inDim
,
int
inTag
);
GMSH_API
gmshModelAddEmbeddedVertex
(
int
tag
,
int
inDim
,
int
inTag
);
/* Gmsh Model Geo Internals */
/* Gmsh Model Geo Internals */
int
gmshModelGeoAddVertex
(
int
*
tag
,
double
x
,
double
y
,
double
z
,
double
lc
);
GMSH_API
gmshModelGeoAddVertex
(
int
*
tag
,
double
x
,
double
y
,
double
z
,
double
lc
);
int
gmshModelGeoAddLine
(
int
*
tag
,
int
startVertexTag
,
int
endVertexTag
);
GMSH_API
gmshModelGeoAddLine
(
int
*
tag
,
int
startVertexTag
,
int
endVertexTag
);
int
gmshModelGeoAddPolyLine
(
int
*
tag
,
const
gmshIntVector
*
vertexTags
);
GMSH_API
gmshModelGeoAddPolyLine
(
int
*
tag
,
const
gmshIntVector
*
vertexTags
);
int
gmshModelGeoExtrude
(
gmshEntityVector
*
in
,
double
dx
,
double
dy
,
double
dz
,
GMSH_API
gmshModelGeoExtrude
(
const
gmshEntityVector
*
in
,
double
dx
,
double
dy
,
gmshEntityVector
*
out
);
double
dz
,
gmshEntityVector
*
out
);
int
gmshModelGeoSynchronize
();
GMSH_API
gmshModelGeoSynchronize
();
/* Gmsh Model OCC Internals */
/* Gmsh Model OCC Internals */
int
gmshModelOCCAddVertex
(
int
*
tag
,
double
x
,
double
y
,
double
z
,
double
lc
);
GMSH_API
gmshModelOCCAddVertex
(
int
*
tag
,
double
x
,
double
y
,
double
z
,
double
lc
);
int
gmshModelOCCAddLine
(
int
*
tag
,
int
startVertexTag
,
int
endVertexTag
);
GMSH_API
gmshModelOCCAddLine
(
int
*
tag
,
int
startVertexTag
,
int
endVertexTag
);
int
gmshModelOCCExtrude
(
const
gmshEntityVector
*
in
,
double
dx
,
double
dy
,
double
dz
,
GMSH_API
gmshModelOCCExtrude
(
const
gmshEntityVector
*
in
,
double
dx
,
double
dy
,
gmshEntityVector
*
out
);
double
dz
,
gmshEntityVector
*
out
);
int
gmshModelOCCSynchronize
();
GMSH_API
gmshModelOCCSynchronize
();
}
}
#endif
#endif
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