Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
OpenMesh
Commits
70c0123b
Commit
70c0123b
authored
Sep 03, 2019
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PLY: add short/ushort support to readInteger.
parent
d28df7ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/OpenMesh/Core/IO/reader/PLYReader.cc
src/OpenMesh/Core/IO/reader/PLYReader.cc
+18
-0
No files found.
src/OpenMesh/Core/IO/reader/PLYReader.cc
View file @
70c0123b
...
...
@@ -976,6 +976,8 @@ void _PLYReader_::readInteger(ValueType _type, std::istream& _in, T& _value) con
static_assert
(
std
::
is_integral
<
T
>::
value
,
"Integral required."
);
int16_t
tmp_int16_t
;
uint16_t
tmp_uint16_t
;
int32_t
tmp_int32_t
;
uint32_t
tmp_uint32_t
;
int8_t
tmp_char
;
...
...
@@ -983,6 +985,22 @@ void _PLYReader_::readInteger(ValueType _type, std::istream& _in, T& _value) con
switch
(
_type
)
{
case
ValueTypeINT16
:
case
ValueTypeSHORT
:
restore
(
_in
,
tmp_int16_t
,
options_
.
check
(
Options
::
MSB
));
_value
=
tmp_int16_t
;
break
;
case
ValueTypeUINT16
:
case
ValueTypeUSHORT
:
restore
(
_in
,
tmp_uint16_t
,
options_
.
check
(
Options
::
MSB
));
_value
=
tmp_uint16_t
;
break
;
case
ValueTypeINT
:
case
ValueTypeINT32
:
...
...
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