From 376491e1f29c31969fa6841ba7b7eeda84aa5ed3 Mon Sep 17 00:00:00 2001 From: Tongxi Lou Date: Mon, 27 Mar 2017 16:14:51 +0200 Subject: [PATCH] old version pcl save face with name vertex_index(still on Ubuntu 14.04). new pcl would then ignore face --- io/src/ply_io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io/src/ply_io.cpp b/io/src/ply_io.cpp index 843954c7981..9e69c79d04e 100644 --- a/io/src/ply_io.cpp +++ b/io/src/ply_io.cpp @@ -301,7 +301,7 @@ namespace pcl boost::tuple, boost::function, boost::function > pcl::PLYReader::listPropertyDefinitionCallback (const std::string& element_name, const std::string& property_name) { - if ((element_name == "range_grid") && (property_name == "vertex_indices")) + if ((element_name == "range_grid") && (property_name == "vertex_indices" || property_name == "vertex_index")) { return boost::tuple, boost::function, boost::function > ( boost::bind (&pcl::PLYReader::rangeGridVertexIndicesBeginCallback, this, _1), @@ -309,7 +309,7 @@ namespace pcl boost::bind (&pcl::PLYReader::rangeGridVertexIndicesEndCallback, this) ); } - else if ((element_name == "face") && (property_name == "vertex_indices") && polygons_) + else if ((element_name == "face") && (property_name == "vertex_indices" || property_name == "vertex_index") && polygons_) { return boost::tuple, boost::function, boost::function > ( boost::bind (&pcl::PLYReader::faceVertexIndicesBeginCallback, this, _1),