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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
9221ec49
Commit
9221ec49
authored
7 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
doc
parent
9beae6dd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Common/gmsh.h
+20
-4
20 additions, 4 deletions
Common/gmsh.h
with
20 additions
and
4 deletions
Common/gmsh.h
+
20
−
4
View file @
9221ec49
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#define GMSH_API std::vector<int>
#define GMSH_API std::vector<int>
#endif
#endif
// A
n
geometrical entity in the Gmsh API is represented by two integers: its
// A geometrical entity in the Gmsh API is represented by two integers: its
// dimension (dim = 0, 1, 2 or 3) and its tag (its unique identifier). When
// dimension (dim = 0, 1, 2 or 3) and its tag (its unique identifier). When
// dealing with multiple geometrical entities of possibly different dimensions
// dealing with multiple geometrical entities of possibly different dimensions
// (e.g. points and surfaces), the entities are packed as a list of (dim, tag)
// (e.g. points and surfaces), the entities are packed as a list of (dim, tag)
...
@@ -191,19 +191,35 @@ GMSH_API gmshModelGetMeshVertices(const int dim, const int tag,
...
@@ -191,19 +191,35 @@ GMSH_API gmshModelGetMeshVertices(const int dim, const int tag,
// Gmsh reference manual). `elementTags' is a vector of length `types.size()';
// Gmsh reference manual). `elementTags' is a vector of length `types.size()';
// each entry is a vector containing the tags (unique identifiers) of the
// each entry is a vector containing the tags (unique identifiers) of the
// elements of the corresponding type. `vertexTags' is a vector of length
// elements of the corresponding type. `vertexTags' is a vector of length
// `types.size()'; each entry is a vector
(
length
= number of elements of the
// `types.size()'; each entry is a vector
of
length
equal to the number of
// give type times number of vertices per element
) contains the vertex tags of
//
elements of the
give type
,
times
the
number of vertices per element
, that
// all the elements of the given type.
//
contains the vertex tags of
all the elements of the given type.
GMSH_API
gmshModelGetMeshElements
(
const
int
dim
,
const
int
tag
,
GMSH_API
gmshModelGetMeshElements
(
const
int
dim
,
const
int
tag
,
std
::
vector
<
int
>
&
types
,
std
::
vector
<
int
>
&
types
,
std
::
vector
<
std
::
vector
<
int
>
>
&
elementTags
,
std
::
vector
<
std
::
vector
<
int
>
>
&
elementTags
,
std
::
vector
<
std
::
vector
<
int
>
>
&
vertexTags
);
std
::
vector
<
std
::
vector
<
int
>
>
&
vertexTags
);
// Sets the mesh vertices in the geometrical entity of dimension `dim' and tag
// `tag'. `vertextags' contains the vertex tags (unique identification
// numbers). `coordinates` is a vector of length `3 * vertexTags.size()' that
// contains the (x, y, z) coordinates of the vertices. The optional
// `parametricCoordinates` vector contains the parametric coordinates of the
// vertices, if any. The length of `parametricCoordinates` can be 0 or `dim *
// vertexTags.size()'.
GMSH_API
gmshModelSetMeshVertices
(
const
int
dim
,
const
int
tag
,
GMSH_API
gmshModelSetMeshVertices
(
const
int
dim
,
const
int
tag
,
const
std
::
vector
<
int
>
&
vertexTags
,
const
std
::
vector
<
int
>
&
vertexTags
,
const
std
::
vector
<
double
>
&
coordinates
,
const
std
::
vector
<
double
>
&
coordinates
,
const
std
::
vector
<
double
>
&
parametricCoordinates
=
const
std
::
vector
<
double
>
&
parametricCoordinates
=
std
::
vector
<
double
>
());
std
::
vector
<
double
>
());
// Sets the mesh elements of the entity of dimension `dim' and `tag'
// tag. `types' contains the MSH types (e.g. 2 for 3-node triangles -- see the
// Gmsh reference manual). `elementTags' is a vector of length `types.size()';
// each entry is a vector containing the tags (unique identifiers) of the
// elements of the corresponding type. `vertexTags' is a vector of length
// `types.size()'; each entry is a vector of length equal to the number of
// elements of the give type, times the number of vertices per element, that
// contains the vertex tags of all the elements of the given type.
GMSH_API
gmshModelSetMeshElements
(
const
int
dim
,
const
int
tag
,
GMSH_API
gmshModelSetMeshElements
(
const
int
dim
,
const
int
tag
,
const
std
::
vector
<
int
>
&
types
,
const
std
::
vector
<
int
>
&
types
,
const
std
::
vector
<
std
::
vector
<
int
>
>
&
elementTags
,
const
std
::
vector
<
std
::
vector
<
int
>
>
&
elementTags
,
...
...
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