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
40c84bdf
Commit
40c84bdf
authored
15 years ago
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
Added a function to detect if a GVertex is on a seam of a GFace
parent
692039a5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/GVertex.cpp
+9
-0
9 additions, 0 deletions
Geo/GVertex.cpp
Geo/GVertex.h
+3
-0
3 additions, 0 deletions
Geo/GVertex.h
with
12 additions
and
0 deletions
Geo/GVertex.cpp
+
9
−
0
View file @
40c84bdf
...
...
@@ -73,3 +73,12 @@ MElement *GVertex::getMeshElement(unsigned int index)
return
points
[
index
];
return
0
;
}
bool
GVertex
::
isOnSeam
(
const
GFace
*
gf
)
const
{
std
::
list
<
GEdge
*>::
const_iterator
eIter
=
l_edges
.
begin
();
for
(;
eIter
!=
l_edges
.
end
();
eIter
++
)
{
if
(
(
*
eIter
)
->
isSeam
(
gf
)
)
return
true
;
}
return
false
;
}
This diff is collapsed.
Click to expand it.
Geo/GVertex.h
+
3
−
0
View file @
40c84bdf
...
...
@@ -71,6 +71,9 @@ class GVertex : public GEntity
// get the element at the given index
MElement
*
getMeshElement
(
unsigned
int
index
);
// return true if this vertex is on a seam of the given face
bool
isOnSeam
(
const
GFace
*
gf
)
const
;
std
::
vector
<
MPoint
*>
points
;
};
...
...
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