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
69a6528f
Commit
69a6528f
authored
13 years ago
by
Emilie Marchandise
Browse files
Options
Downloads
Patches
Plain Diff
bamg with compound edges
parent
06805aa7
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
Mesh/meshGFaceBamg.cpp
+10
-11
10 additions, 11 deletions
Mesh/meshGFaceBamg.cpp
with
10 additions
and
11 deletions
Mesh/meshGFaceBamg.cpp
+
10
−
11
View file @
69a6528f
...
...
@@ -67,8 +67,6 @@ static void computeMeshMetricsForBamg(GFace *gf, int numV,
void
meshGFaceBamg
(
GFace
*
gf
){
//printf("meshGFaceBamg face=%d \n",gf->tag());
//Replace edges by their compounds
std
::
list
<
GEdge
*>
edges
=
gf
->
edges
();
std
::
set
<
GEdge
*>
mySet
;
...
...
@@ -94,14 +92,16 @@ void meshGFaceBamg(GFace *gf){
}
}
//fill mesh data fo bamg (bamgVertices, bamgTriangles, bamgBoundary)
std
::
set
<
MVertex
*>
all
;
std
::
map
<
int
,
MVertex
*>
recover
;
for
(
unsigned
int
i
=
0
;
i
<
gf
->
triangles
.
size
();
i
++
){
for
(
unsigned
int
j
=
0
;
j
<
3
;
j
++
)
all
.
insert
(
gf
->
triangles
[
i
]
->
getVertex
(
j
));
}
printf
(
"all.size=%d
\n
"
,
all
.
size
());
Vertex2
*
bamgVertices
=
new
Vertex2
[
all
.
size
()];
Vertex2
*
bamgVertices
=
new
Vertex2
[
bcVertex
.
size
()
+
all
.
size
()];
//all.size()];
int
index
=
0
;
//for(std::set<MVertex*>::iterator it = all.begin(); it!=all.end(); ++it){
// if ((*it)->onWhat()->dim() <= 1){
...
...
@@ -113,12 +113,12 @@ void meshGFaceBamg(GFace *gf){
bamgVertices
[
index
].
lab
=
index
;
recover
[
index
]
=
*
it
;
(
*
it
)
->
setIndex
(
index
++
);
}
//
}
//
}
}
int
nbFixedVertices
=
index
;
for
(
std
::
set
<
MVertex
*>::
iterator
it
=
all
.
begin
();
it
!=
all
.
end
();
++
it
){
// FIXME : SEAMS should have to be taken into account here !!!
int
nbFixedVertices
=
index
;
for
(
std
::
set
<
MVertex
*>::
iterator
it
=
all
.
begin
();
it
!=
all
.
end
();
++
it
){
// FIXME : SEAMS should have to be taken into account here !!!
if
((
*
it
)
->
onWhat
()
->
dim
()
>=
2
){
SPoint2
p
;
bool
success
=
reparamMeshVertexOnFace
(
*
it
,
gf
,
p
);
...
...
@@ -127,7 +127,7 @@ void meshGFaceBamg(GFace *gf){
recover
[
index
]
=
*
it
;
(
*
it
)
->
setIndex
(
index
++
);
}
}
}
Triangle2
*
bamgTriangles
=
new
Triangle2
[
gf
->
triangles
.
size
()];
for
(
unsigned
int
i
=
0
;
i
<
gf
->
triangles
.
size
();
i
++
){
...
...
@@ -148,7 +148,6 @@ void meshGFaceBamg(GFace *gf){
}
bamgTriangles
[
i
].
init
(
bamgVertices
,
nodes
,
gf
->
tag
());
}
//std::list<GEdge*> edges = gf->edges();
int
numEdges
=
0
;
for
(
std
::
list
<
GEdge
*>::
iterator
it
=
edges
.
begin
();
it
!=
edges
.
end
();
++
it
){
numEdges
+=
(
*
it
)
->
lines
.
size
();
...
...
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