39 #ifndef PCL_IO_ASCII_IO_HPP_
40 #define PCL_IO_ASCII_IO_HPP_
46 template<
typename Po
intT>
void
49 fields_ = pcl::getFields<PointT> ();
53 for (
auto field_iter =
fields_.begin ();
54 field_iter !=
fields_.end (); ++field_iter)
56 if (field_iter->name ==
"_")
57 field_iter =
fields_.erase (field_iter);
58 field_iter->offset = offset;
59 offset +=
typeSize (field_iter->datatype);
std::vector< pcl::PCLPointField > fields_
void setInputFields()
Set the ascii file point fields.
std::uint32_t typeSize(int type)
Returns the size in bytes of a point field type.