Go to the documentation of this file.
9 #ifndef PLY_IMPORT_EXPORT_H
10 #define PLY_IMPORT_EXPORT_H
36 const std::string &filename,
81 const std::string & filename,
82 bool save_in_binary =
false,
Lightweight 3D point (float version).
virtual size_t PLY_export_get_face_count() const =0
In a base class, return the number of faces.
A virtual base class that implements the capability of importing 3D point clouds and faces from a fil...
virtual void PLY_import_set_vertex_count(const size_t N)=0
In a base class, reserve memory to prepare subsequent calls to PLY_import_set_vertex.
std::string getSavePLYErrorString() const
Return a description of the error if loadFromPlyFile() returned false, or an empty string if the file...
virtual void PLY_import_set_vertex(const size_t idx, const mrpt::math::TPoint3Df &pt, const mrpt::utils::TColorf *pt_color=NULL)=0
In a base class, will be called after PLY_import_set_vertex_count() once for each loaded point.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string getLoadPLYErrorString() const
Return a description of the error if loadFromPlyFile() returned false, or an empty string if the file...
std::string m_ply_export_last_error
virtual void PLY_import_set_face_count(const size_t N)=0
In a base class, reserve memory to prepare subsequent calls to PLY_import_set_face.
A virtual base class that implements the capability of exporting 3D point clouds and faces to a file ...
virtual void PLY_export_get_vertex(const size_t idx, mrpt::math::TPoint3Df &pt, bool &pt_has_color, mrpt::utils::TColorf &pt_color) const =0
In a base class, will be called after PLY_export_get_vertex_count() once for each exported point.
virtual size_t PLY_export_get_vertex_count() const =0
In a base class, return the number of vertices.
A RGB color - floats in the range [0,1].
bool saveToPlyFile(const std::string &filename, bool save_in_binary=false, const CStringList &file_comments=CStringList(), const CStringList &file_obj_info=CStringList()) const
Saves to a PLY file.
bool loadFromPlyFile(const std::string &filename, CStringList *file_comments=NULL, CStringList *file_obj_info=NULL)
Loads from a PLY file.
A class for storing a list of text lines.
std::string m_ply_import_last_error
Page generated by Doxygen 1.8.20 for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020 | | |