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
OpenMesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
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
OpenMesh
OpenMesh
Commits
32c952c8
Commit
32c952c8
authored
May 15, 2019
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PLY Reader: Fix reading doubles from PLY, missing cast (Thanks to Leo Walsh for the patch)
parent
53616eb9
Pipeline
#10330
passed with stage
in 50 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Doc/changelog.docu
Doc/changelog.docu
+6
-0
src/OpenMesh/Core/IO/reader/PLYReader.cc
src/OpenMesh/Core/IO/reader/PLYReader.cc
+6
-0
No files found.
Doc/changelog.docu
View file @
32c952c8
...
...
@@ -21,6 +21,12 @@
<li>PropertyManager: add hasProperty function</li>
</ul>
<b>IO</b>
<ul>
<li>PLY Reader: Fix reading doubles from PLY, missing cast (Thanks to Leo Walsh for the patch)</li>
</ul>
<b>Build System</b>
<ul>
<li>Generate OpenMeshConfig.cmake (Thanks to Thibault Payet for the patch)</li>
...
...
src/OpenMesh/Core/IO/reader/PLYReader.cc
View file @
32c952c8
...
...
@@ -804,6 +804,12 @@ void _PLYReader_::readValue(ValueType _type, std::istream& _in, float& _value) c
restore
(
_in
,
tmp
,
options_
.
check
(
Options
::
MSB
));
_value
=
tmp
;
break
;
case
ValueTypeDOUBLE
:
case
ValueTypeFLOAT64
:
double
dtmp
;
readValue
(
_type
,
_in
,
dtmp
);
_value
=
static_cast
<
float
>
(
dtmp
);
break
;
default:
_value
=
0.0
;
std
::
cerr
<<
"unsupported conversion type to float: "
<<
_type
<<
std
::
endl
;
...
...
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