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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
d87f55a7
Commit
d87f55a7
authored
4 years ago
by
Célestin Marot
Browse files
Options
Downloads
Patches
Plain Diff
comment and prints to help me dev
parent
914e2511
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
contrib/hxt/tetMesh/src/hxt_tetDelaunay.c
+19
-1
19 additions, 1 deletion
contrib/hxt/tetMesh/src/hxt_tetDelaunay.c
with
19 additions
and
1 deletion
contrib/hxt/tetMesh/src/hxt_tetDelaunay.c
+
19
−
1
View file @
d87f55a7
...
...
@@ -714,6 +714,9 @@ static HXTStatus isStarShaped(TetLocal* local, HXTMesh* mesh, const uint32_t vta
return
HXT_STATUS_INTERNAL
;
}
}
else
{
return
HXT_ERROR_MSG
(
HXT_STATUS_ERROR
,
"ghost vertex in constrained cavity"
);
}
}
return
HXT_STATUS_OK
;
}
...
...
@@ -738,7 +741,7 @@ static HXTStatus undeleteTetrahedron(TetLocal* local, HXTMesh* mesh, uint64_t te
int
nbndFace
=
0
;
// we should update the boundary (that's the difficult part...)
// first remove all the boundary faces that come from the tetrahedron we just remove
to
the cavity
// first remove all the boundary faces that come from the tetrahedron we just remove
d from
the cavity
for
(
uint64_t
i
=
local
->
ball
.
num
;
nbndFace
<
4
&&
i
>
0
;
i
--
)
{
if
(
mesh
->
tetrahedra
.
neigh
[
local
->
ball
.
array
[
i
-
1
].
neigh
]
/
4
==
tetToUndelete
)
{
bndFaces
[
nbndFace
++
]
=
local
->
ball
.
array
[
i
-
1
].
neigh
;
...
...
@@ -797,10 +800,23 @@ static HXTStatus undeleteTetrahedron(TetLocal* local, HXTMesh* mesh, uint64_t te
static
HXTStatus
reshapeCavityIfNeeded
(
TetLocal
*
local
,
HXTMesh
*
mesh
,
const
uint32_t
vta
)
{
// we will remove the tetrahedra adjacent to the face that does not see the point, progressively, until the cavity is star shaped...
uint64_t
blindFace
=
0
;
uint64_t
count
=
0
;
// TODO: optimize this part of the algorithm.
// 1: only the faces that were not yet tested for star-shapedness need to be tested
// 2: only mark the tet as not deleted, and push it on a stack.
// => finding the tet. in local->deleted.array should be done with an optimized algo
// 3: the face and flags should not be pushed directly if it is going to be removed... recursive strategy ??
// 4 ??: maybe use the SPR in some cases
while
(
isStarShaped
(
local
,
mesh
,
vta
,
&
blindFace
)
==
HXT_STATUS_INTERNAL
)
{
HXT_CHECK
(
undeleteTetrahedron
(
local
,
mesh
,
mesh
->
tetrahedra
.
neigh
[
local
->
ball
.
array
[
blindFace
].
neigh
]
/
4
)
);
count
++
;
}
if
(
count
)
printf
(
"nbr of tet to undelete = %lu, nbr of deleted tet = %lu
\n
"
,
count
,
local
->
deleted
.
num
);
return
HXT_STATUS_OK
;
}
...
...
@@ -1742,6 +1758,8 @@ static HXTStatus parallelDelaunay3D(HXTMesh* mesh,
******************************************************/
for
(
uint32_t
i
=
0
;
i
<
localN
;
i
++
)
{
if
(
i
%
1000
==
0
)
printf
(
"%f %%
\n
"
,
100
.
0
*
i
/
localN
);
uint32_t
passIndex
=
(
localStart
+
i
)
%
passLength
;
uint32_t
vta
=
nodeInfo
[
passStart
+
passIndex
].
node
;
if
(
nodeInfo
[
passStart
+
passIndex
].
status
==
HXT_STATUS_TRYAGAIN
){
...
...
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