Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
865fdba5
Commit
865fdba5
authored
Aug 05, 2016
by
Max Lyon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in halfface reordering
parent
15ebfd74
Pipeline
#2388
passed with stage
in 15 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/OpenVolumeMesh/Core/TopologyKernel.cc
src/OpenVolumeMesh/Core/TopologyKernel.cc
+4
-3
No files found.
src/OpenVolumeMesh/Core/TopologyKernel.cc
View file @
865fdba5
...
...
@@ -354,12 +354,13 @@ void TopologyKernel::reorder_incident_halffaces(const EdgeHandle& _eh) {
if
(
cur_hf
==
start_hf
)
break
;
if
(
cur_hf
!=
InvalidHalfFaceHandle
)
new_halffaces
.
insert
(
new_halffaces
.
begin
(),
cur_hf
);
else
break
;
// if one of the faces of the cell was already incident to another cell we need this check
// to prevent running into an infinite loop.
if
(
std
::
find
(
new_halffaces
.
begin
(),
new_halffaces
.
end
(),
cur_hf
)
!=
new_halffaces
.
end
())
break
;
if
(
cur_hf
!=
InvalidHalfFaceHandle
)
new_halffaces
.
insert
(
new_halffaces
.
begin
(),
cur_hf
);
else
break
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment