Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
8ce8d8a6
Commit
8ce8d8a6
authored
Oct 12, 2018
by
Max Lyon
Browse files
reduce scope of variables
parent
1e9e4d59
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/IO/reader/OMReader.cc
View file @
8ce8d8a6
...
...
@@ -519,7 +519,6 @@ bool _OMReader_::read_binary_edge_chunk(std::istream &_is, BaseImporter &_bi, Op
size_t
b
=
bytes_
;
size_t
eidx
=
0
;
OpenMesh
::
Attributes
::
StatusInfo
status
;
switch
(
chunk_header_
.
type_
)
{
...
...
@@ -535,7 +534,7 @@ bool _OMReader_::read_binary_edge_chunk(std::istream &_is, BaseImporter &_bi, Op
fileOptions_
+=
Options
::
Status
;
for
(;
eidx
<
header_
.
n_edges_
&&
!
_is
.
eof
();
++
eidx
)
{
for
(
size_t
eidx
=
0
;
eidx
<
header_
.
n_edges_
&&
!
_is
.
eof
();
++
eidx
)
{
bytes_
+=
restore
(
_is
,
status
,
_swap
);
if
(
fileOptions_
.
edge_has_status
()
&&
_opt
.
edge_has_status
())
_bi
.
set_status
(
EdgeHandle
(
int
(
eidx
)),
status
);
...
...
@@ -563,7 +562,6 @@ bool _OMReader_::read_binary_halfedge_chunk(std::istream &_is, BaseImporter &_bi
assert
(
chunk_header_
.
entity_
==
Chunk
::
Entity_Halfedge
);
size_t
b
=
bytes_
;
size_t
hidx
=
0
;
OpenMesh
::
Attributes
::
StatusInfo
status
;
switch
(
chunk_header_
.
type_
)
{
...
...
@@ -613,7 +611,7 @@ bool _OMReader_::read_binary_halfedge_chunk(std::istream &_is, BaseImporter &_bi
fileOptions_
+=
Options
::
Status
;
for
(;
hidx
<
header_
.
n_edges_
*
2
&&
!
_is
.
eof
();
++
hidx
)
{
for
(
size_t
hidx
=
0
;
hidx
<
header_
.
n_edges_
*
2
&&
!
_is
.
eof
();
++
hidx
)
{
bytes_
+=
restore
(
_is
,
status
,
_swap
);
if
(
fileOptions_
.
halfedge_has_status
()
&&
_opt
.
halfedge_has_status
())
_bi
.
set_status
(
HalfedgeHandle
(
int
(
hidx
)),
status
);
...
...
Write
Preview
Supports
Markdown
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