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
OpenMesh
OpenMesh
Commits
70c0123b
Commit
70c0123b
authored
Sep 03, 2019
by
Jan Möbius
Browse files
PLY: add short/ushort support to readInteger.
parent
d28df7ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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