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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
608a7115
Commit
608a7115
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
recurFindCavity -> findCavity (thanks to Sauli Ruuska!)
parent
bfa34f3b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/meshGRegionDelaunayInsertion.cpp
+36
-56
36 additions, 56 deletions
Mesh/meshGRegionDelaunayInsertion.cpp
doc/CREDITS.txt
+1
-1
1 addition, 1 deletion
doc/CREDITS.txt
with
37 additions
and
57 deletions
Mesh/meshGRegionDelaunayInsertion.cpp
+
36
−
56
View file @
608a7115
...
...
@@ -316,49 +316,31 @@ int makeCavityStarShaped (std::list<faceXtet> & shell,
return
1
;
}
void
recurF
indCavity
(
std
::
list
<
faceXtet
>
&
shell
,
void
f
indCavity
(
std
::
list
<
faceXtet
>
&
shell
,
std
::
list
<
MTet4
*>
&
cavity
,
MVertex
*
v
,
MTet4
*
t
)
{
t
->
setDeleted
(
true
);
cavity
.
push_back
(
t
);
for
(
std
::
list
<
MTet4
*>::
iterator
it
=
--
cavity
.
end
();
it
!=
cavity
.
end
();
++
it
)
{
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
MTet4
*
neigh
=
t
->
getNeigh
(
i
)
;
faceXtet
fxt
(
t
,
i
);
MTet4
*
neigh
=
(
*
it
)
->
getNeigh
(
i
);
faceXtet
fxt
(
*
i
t
,
i
);
if
(
!
neigh
)
shell
.
push_back
(
fxt
);
else
if
(
!
neigh
->
isDeleted
())
{
int
circ
=
neigh
->
inCircumSphere
(
v
);
if
(
circ
&&
(
neigh
->
onWhat
()
==
t
->
onWhat
()))
recurFindCavity
(
shell
,
cavity
,
v
,
neigh
);
if
(
circ
&&
(
neigh
->
onWhat
()
==
(
*
it
)
->
onWhat
()))
{
neigh
->
setDeleted
(
true
);
cavity
.
push_back
(
neigh
);
}
else
{
shell
.
push_back
(
fxt
);
}
}
}
}
void
recurFindCavity
(
std
::
vector
<
faceXtet
>
&
shell
,
std
::
vector
<
MTet4
*>
&
cavity
,
MVertex
*
v
,
MTet4
*
t
)
{
t
->
setDeleted
(
true
);
cavity
.
push_back
(
t
);
for
(
int
i
=
0
;
i
<
4
;
i
++
){
MTet4
*
neigh
=
t
->
getNeigh
(
i
)
;
faceXtet
fxt
(
t
,
i
);
if
(
!
neigh
)
shell
.
push_back
(
fxt
);
else
if
(
!
neigh
->
isDeleted
()){
int
circ
=
neigh
->
inCircumSphere
(
v
);
if
(
circ
&&
(
neigh
->
onWhat
()
==
t
->
onWhat
()))
recurFindCavity
(
shell
,
cavity
,
v
,
neigh
);
else
shell
.
push_back
(
fxt
);
}
}
}
void
printTets
(
const
char
*
fn
,
std
::
list
<
MTet4
*>
&
cavity
,
bool
force
=
false
)
...
...
@@ -506,10 +488,9 @@ bool insertVertex(MVertex *v,
std
::
list
<
faceXtet
>
shell
;
std
::
list
<
MTet4
*>
cavity
;
recurF
indCavity
(
shell
,
cavity
,
v
,
t
);
f
indCavity
(
shell
,
cavity
,
v
,
t
);
return
insertVertexB
(
shell
,
cavity
,
v
,
t
,
myFactory
,
allTets
,
vSizes
,
vSizesBGM
,
activeTets
);
}
static
void
setLcs
(
MTriangle
*
t
,
std
::
map
<
MVertex
*
,
double
>
&
vSizes
,
...
...
@@ -1306,7 +1287,7 @@ void insertVerticesInRegion (GRegion *gr, int maxVert, bool _classify)
std
::
list
<
faceXtet
>
shell
;
std
::
list
<
MTet4
*>
cavity
;
MVertex
vv
(
center
[
0
],
center
[
1
],
center
[
2
],
worst
->
onWhat
());
recurF
indCavity
(
shell
,
cavity
,
&
vv
,
worst
);
f
indCavity
(
shell
,
cavity
,
&
vv
,
worst
);
bool
FOUND
=
false
;
for
(
std
::
list
<
MTet4
*>::
iterator
itc
=
cavity
.
begin
();
itc
!=
cavity
.
end
();
++
itc
){
...
...
@@ -1653,4 +1634,3 @@ void delaunayMeshIn3D(std::vector<MVertex*> &v, std::vector<MTetrahedron*> &resu
double
t2
=
Cpu
();
Msg
::
Info
(
"Tetrahedrization of %d points in %g seconds"
,
v
.
size
(),
t2
-
t1
);
}
This diff is collapsed.
Click to expand it.
doc/CREDITS.txt
+
1
−
1
View file @
608a7115
...
...
@@ -137,4 +137,4 @@ Hackbarth, Peter Wainwright, Jiri Hnidek, Thierry Thomas, Konstantinos Poulios,
Laurent Van Miegroet, Shahrokh Ghavamian, Geordie McBain, Jose Paulo Moitinho de
Almeida, Guillaume Demesy, Wendy Merks-Swolfs, Cosmin Stefan Deaconu, Nigel
Nunn, Serban Georgescu, Julien Troufflard, Michele Mocciola, Matthijs Sypkens
Smit.
Smit
, Sauli Ruuska
.
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