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,
A class for storing a list of text lines.
A virtual base class that implements the capability of exporting 3D point clouds and faces to a file ...
std::string getSavePLYErrorString() const
Return a description of the error if loadFromPlyFile() returned false, or an empty string if the file...
virtual size_t PLY_export_get_face_count() const =0
In a base class, return the number of faces.
virtual size_t PLY_export_get_vertex_count() const =0
In a base class, return the number of vertices.
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.
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.
std::string m_ply_export_last_error
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.
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.
bool loadFromPlyFile(const std::string &filename, CStringList *file_comments=NULL, CStringList *file_obj_info=NULL)
Loads from a PLY file.
std::string m_ply_import_last_error
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.
std::string getLoadPLYErrorString() const
Return a description of the error if loadFromPlyFile() returned false, or an empty string if the file...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Lightweight 3D point (float version).
A RGB color - floats in the range [0,1].