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
8ffd1a3e
Commit
8ffd1a3e
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
todo tetgen: recategorize vertices+tets in each separate region
parent
e88cb090
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
Mesh/meshGRegion.cpp
+20
-16
20 additions, 16 deletions
Mesh/meshGRegion.cpp
with
20 additions
and
16 deletions
Mesh/meshGRegion.cpp
+
20
−
16
View file @
8ffd1a3e
// $Id: meshGRegion.cpp,v 1.1
3
2006-11-26 0
1
:1
1:01
geuzaine Exp $
// $Id: meshGRegion.cpp,v 1.1
4
2006-11-26 0
2
:1
4:24
geuzaine Exp $
//
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
// Please report all bugs and problems to <gmsh@geuz.org>.
// Please report all bugs and problems to <gmsh@geuz.org>.
#include
"meshGRegion.h"
#include
"meshGRegion.h"
#include
"meshGRegionDelaunayInsertion.h"
#include
"GModel.h"
#include
"GModel.h"
#include
"GRegion.h"
#include
"GRegion.h"
#include
"GFace.h"
#include
"GFace.h"
...
@@ -124,9 +125,8 @@ void TransferTetgenMesh(GRegion *gr, tetgenio &in, tetgenio &out,
...
@@ -124,9 +125,8 @@ void TransferTetgenMesh(GRegion *gr, tetgenio &in, tetgenio &out,
Msg
(
INFO
,
"%d points %d edges and %d faces in the final mesh"
,
Msg
(
INFO
,
"%d points %d edges and %d faces in the final mesh"
,
out
.
numberofpoints
,
out
.
numberofedges
,
out
.
numberoftrifaces
);
out
.
numberofpoints
,
out
.
numberofedges
,
out
.
numberoftrifaces
);
// Tetgen modifies both surface & edge mesh. So, we need to
// Tetgen modifies both surface & edge mesh, so we need to re-create
// re-create everything
// everything
std
::
list
<
GFace
*>
faces
=
gr
->
faces
();
std
::
list
<
GFace
*>
faces
=
gr
->
faces
();
std
::
list
<
GFace
*>::
iterator
it
=
faces
.
begin
();
std
::
list
<
GFace
*>::
iterator
it
=
faces
.
begin
();
while
(
it
!=
faces
.
end
()){
while
(
it
!=
faces
.
end
()){
...
@@ -134,6 +134,7 @@ void TransferTetgenMesh(GRegion *gr, tetgenio &in, tetgenio &out,
...
@@ -134,6 +134,7 @@ void TransferTetgenMesh(GRegion *gr, tetgenio &in, tetgenio &out,
for
(
unsigned
int
i
=
0
;
i
<
gf
->
triangles
.
size
();
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
gf
->
triangles
.
size
();
i
++
)
delete
gf
->
triangles
[
i
];
delete
gf
->
triangles
[
i
];
gf
->
triangles
.
clear
();
gf
->
triangles
.
clear
();
if
(
gf
->
meshRep
)
gf
->
meshRep
->
destroy
();
++
it
;
++
it
;
}
}
...
@@ -458,8 +459,11 @@ void meshGRegion::operator() (GRegion *gr)
...
@@ -458,8 +459,11 @@ void meshGRegion::operator() (GRegion *gr)
sprintf
(
opts
,
"pe%c"
,
(
CTX
.
verbosity
<
3
)
?
'Q'
:
(
CTX
.
verbosity
>
6
)
?
'V'
:
'\0'
);
sprintf
(
opts
,
"pe%c"
,
(
CTX
.
verbosity
<
3
)
?
'Q'
:
(
CTX
.
verbosity
>
6
)
?
'V'
:
'\0'
);
tetrahedralize
(
opts
,
&
in
,
&
out
);
tetrahedralize
(
opts
,
&
in
,
&
out
);
TransferTetgenMesh
(
gr
,
in
,
out
,
numberedV
);
TransferTetgenMesh
(
gr
,
in
,
out
,
numberedV
);
// FIXME: all the volume nodes+tets now belong to the first
// region--we need to recategorize them into each separate region
// now do insertion of points
// now do insertion of points
void
insertVerticesInRegion
(
GRegion
*
gr
)
;
insertVerticesInRegion
(
gr
);
insertVerticesInRegion
(
gr
);
// restore the initial set of faces
// restore the initial set of faces
gr
->
set
(
faces
);
gr
->
set
(
faces
);
...
...
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