{"action":"closed","issue":{"url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1433","labels_url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1433/labels{/name}","comments_url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1433/comments","events_url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1433/events","html_url":"https://github.com/PointCloudLibrary/pcl/issues/1433","id":117564571,"number":1433,"title":"loadPLYFile() does not support NaN values","user":{"login":"VictorLamoine","id":5566160,"avatar_url":"https://avatars.githubusercontent.com/u/5566160?v=3","gravatar_id":"","url":"https://api.github.com/users/VictorLamoine","html_url":"https://github.com/VictorLamoine","followers_url":"https://api.github.com/users/VictorLamoine/followers","following_url":"https://api.github.com/users/VictorLamoine/following{/other_user}","gists_url":"https://api.github.com/users/VictorLamoine/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorLamoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorLamoine/subscriptions","organizations_url":"https://api.github.com/users/VictorLamoine/orgs","repos_url":"https://api.github.com/users/VictorLamoine/repos","events_url":"https://api.github.com/users/VictorLamoine/events{/privacy}","received_events_url":"https://api.github.com/users/VictorLamoine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T11:08:48Z","updated_at":"2015-11-20T19:37:28Z","closed_at":"2015-11-20T19:37:28Z","body":"Test code\r\n---\r\n```cpp\r\n#include <pcl/common/common.h>\r\n#include <pcl/console/parse.h>\r\n#include <pcl/point_cloud.h>\r\n#include <pcl/io/ply_io.h>\r\n#include <pcl/visualization/pcl_visualizer.h>\r\n\r\nint main(int argc, char* argv[])\r\n{\r\n  std::vector<int> ply_args = pcl::console::parse_file_extension_argument (argc, argv, \".ply\");\r\n  if (ply_args.size() != 1)\r\n  {\r\n    PCL_ERROR(\"Usage: %s input.ply\\n\", argv[0]);\r\n    return -1;\r\n  }\r\n\r\n  pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);\r\n  if (pcl::io::loadPLYFile(argv[ply_args[0]], *cloud) != 0)\r\n  {\r\n    PCL_ERROR(\"Could not load %s\\n\", argv[ply_args[0]]);\r\n    return -1;\r\n  }\r\n\r\n  pcl::visualization::PCLVisualizer viewer;\r\n  viewer.addPointCloud(cloud);\r\n  viewer.spin();\r\n  return 0;\r\n}\r\n```\r\n\r\nFile 1\r\n```\r\nformat ascii 1.0\r\ncomment VCGLIB generated\r\nelement vertex 4\r\nproperty float x\r\nproperty float y\r\nproperty float z\r\nelement face 0\r\nproperty list uchar int vertex_indices\r\nend_header\r\n4.23607 0 1.61803 \r\n2.61803 2.61803 2.61803 \r\n0 1.61803 4.23607 \r\n0 -1.61803 4.23607 \r\n```\r\n\r\nFile 2\r\n```\r\nformat ascii 1.0\r\ncomment VCGLIB generated\r\nelement vertex 4\r\nproperty float x\r\nproperty float y\r\nproperty float z\r\nelement face 0\r\nproperty list uchar int vertex_indices\r\nend_header\r\n4.23607 nan 1.61803 \r\n2.61803 2.61803 2.61803 \r\n0 1.61803 4.23607 \r\n0 -1.61803 4.23607 \r\n```\r\n\r\nFile 3\r\n```\r\nformat ascii 1.0\r\ncomment VCGLIB generated\r\nelement vertex 4\r\nproperty float x\r\nproperty float y\r\nproperty float z\r\nelement face 0\r\nproperty list uchar int vertex_indices\r\nend_header\r\n4.23607 NaN 1.61803 \r\n2.61803 2.61803 2.61803 \r\n0 1.61803 4.23607 \r\n0 -1.61803 4.23607 \r\n```\r\n\r\nOutput error:\r\n---\r\nHappens with `file_2` and `file_3`\r\n```\r\n$ ./test_pcl_1 ~/file_2.ply \r\n[pcl::PLYReader] /home/victor/file_2.ply:9: property 'list uint8 int32 vertex_indices' of element 'face' is not handled\r\n[pcl::PLYReader] /home/victor/file_2.ply:11: parse error\r\n[pcl::PLYReader::read] problem parsing header!\r\n[pcl::PLYReader::read] problem parsing header!\r\nCould not load /home/victor/file_2.ply\r\n"}}