Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4c4a9536 authored by Alexandre Lanvin's avatar Alexandre Lanvin
Browse files

support for ply files written using meshio

parent d8856f60
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,9 @@ int loadPly(const char* filename, ...@@ -88,6 +88,9 @@ int loadPly(const char* filename,
std::string dummy; std::string dummy;
std::getline(infile, buff); std::getline(infile, buff);
if(strstr(buff.c_str(), "comment") != NULL) // meshio writes a comment when saving ply files.
std::getline(infile, buff);
std::stringstream ss(buff); std::stringstream ss(buff);
int count; int count;
ss >> dummy >> dummy >> count; ss >> dummy >> dummy >> count;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment