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
b4cea600
Commit
b4cea600
authored
May 30, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle nr newlines
parent
91ee22ca
Pipeline
#2051
passed with stage
in 72 minutes and 24 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Doc/changelog.docu
Doc/changelog.docu
+1
-0
src/OpenMesh/Core/IO/reader/PLYReader.cc
src/OpenMesh/Core/IO/reader/PLYReader.cc
+4
-0
No files found.
Doc/changelog.docu
View file @
b4cea600
...
...
@@ -20,6 +20,7 @@
<b>IO</b>
<ul>
<li>PLY Reader: Handle nr newlines (Thanks to Christian Feurer for the patch)</li>
<li>PLY Reader: Fixed binary reader errors in ply reader. (Thanks to Michael Kremer for the patch)</li>
</ul>
...
...
src/OpenMesh/Core/IO/reader/PLYReader.cc
View file @
b4cea600
...
...
@@ -1076,6 +1076,10 @@ bool _PLYReader_::can_u_read(std::istream& _is) const {
std
::
getline
(
_is
,
line
);
trim
(
line
);
// Handle '\r\n' newlines
const
int
s
=
line
.
size
();
if
(
s
>
0
&&
line
[
s
-
1
]
==
'\r'
)
line
.
resize
(
s
-
1
);
//Check if this file is really a ply format
if
(
line
!=
"PLY"
&&
line
!=
"ply"
)
return
false
;
...
...
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