9 #ifndef PLY_IMPORT_EXPORT_H 10 #define PLY_IMPORT_EXPORT_H 98 const std::string& filename,
bool save_in_binary =
false,
virtual size_t PLY_export_get_face_count() const =0
In a base class, return the number of faces.
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_import_last_error
A class for storing a list of text lines.
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.
Lightweight 3D point (float version).
std::string getSavePLYErrorString() 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_vertex_count(const size_t N)=0
In a base class, reserve memory to prepare subsequent calls to PLY_import_set_vertex.
A virtual base class that implements the capability of importing 3D point clouds and faces from a fil...
GLsizei const GLchar ** string
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.
virtual size_t PLY_export_get_vertex_count() const =0
In a base class, return the number of vertices.
virtual void PLY_import_set_vertex(const size_t idx, const mrpt::math::TPoint3Df &pt, const mrpt::utils::TColorf *pt_color=nullptr)=0
In a base class, will be called after PLY_import_set_vertex_count() once for each loaded point...
A RGB color - floats in the range [0,1].
bool loadFromPlyFile(const std::string &filename, CStringList *file_comments=nullptr, CStringList *file_obj_info=nullptr)
Loads from a PLY 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...
A virtual base class that implements the capability of exporting 3D point clouds and faces to a file ...