Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
865fdba5
Commit
865fdba5
authored
Aug 05, 2016
by
Max Lyon
Browse files
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
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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment