Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenVolumeMesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
c602ccf5
Commit
c602ccf5
authored
May 24, 2019
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid cppcheck warning
parent
84c855ef
Pipeline
#10519
passed with stage
in 6 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/OpenVolumeMesh/Mesh/TetrahedralMeshTopologyKernel.cc
src/OpenVolumeMesh/Mesh/TetrahedralMeshTopologyKernel.cc
+4
-6
No files found.
src/OpenVolumeMesh/Mesh/TetrahedralMeshTopologyKernel.cc
View file @
c602ccf5
...
...
@@ -355,10 +355,8 @@ VertexHandle TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh)
for
(
VertexCellIter
vc_it
=
vc_iter
(
from_vh
);
vc_it
.
valid
();
++
vc_it
)
incidentCells
.
push_back
(
*
vc_it
);
for
(
unsigned
int
i
=
0
;
i
<
incidentCells
.
size
();
++
i
)
for
(
const
CellHandle
&
ch
:
incidentCells
)
{
CellHandle
ch
=
incidentCells
[
i
];
if
(
collapsingCells
.
find
(
ch
)
!=
collapsingCells
.
end
())
continue
;
...
...
@@ -366,9 +364,9 @@ VertexHandle TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh)
std
::
vector
<
HalfFaceHandle
>
newHalffaces
;
for
(
unsigned
int
i
=
0
;
i
<
4
;
++
i
)
for
(
unsigned
int
hf_idx
=
0
;
hf_idx
<
4
;
++
hf_idx
)
{
Face
hf
=
halfface
(
c
.
halffaces
()[
i
]);
Face
hf
=
halfface
(
c
.
halffaces
()[
hf_idx
]);
std
::
vector
<
HalfEdgeHandle
>
newHalfedges
;
for
(
unsigned
int
j
=
0
;
j
<
3
;
++
j
)
...
...
@@ -384,7 +382,7 @@ VertexHandle TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh)
HalfFaceHandle
hfh
=
add_halfface
(
newHalfedges
);
newHalffaces
.
push_back
(
hfh
);
swap_halfface_properties
(
c
.
halffaces
()[
i
],
hfh
);
swap_halfface_properties
(
c
.
halffaces
()[
hf_idx
],
hfh
);
}
delete_cell
(
ch
);
...
...
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