Go to the documentation of this file.
41 std::vector<std::string>* file_comments =
nullptr,
42 std::vector<std::string>* file_obj_info =
nullptr);
98 const std::string& filename,
bool save_in_binary =
false,
99 const std::vector<std::string>& file_comments =
100 std::vector<std::string>(),
101 const std::vector<std::string>& file_obj_info =
102 std::vector<std::string>())
const;
Lightweight 3D point (float version).
virtual size_t PLY_export_get_vertex_count() const =0
In a base class, return the number of vertices.
bool loadFromPlyFile(const std::string &filename, std::vector< std::string > *file_comments=nullptr, std::vector< std::string > *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::img::TColorf &pt_color) const =0
In a base class, will be called after PLY_export_get_vertex_count() once for each exported point.
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 size_t PLY_export_get_face_count() const =0
In a base class, return the number of faces.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
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 ...
std::string getSavePLYErrorString() const
Return a description of the error if loadFromPlyFile() returned false, or an empty string if the file...
A RGB color - floats in the range [0,1].
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...
bool saveToPlyFile(const std::string &filename, bool save_in_binary=false, const std::vector< std::string > &file_comments=std::vector< std::string >(), const std::vector< std::string > &file_obj_info=std::vector< std::string >()) const
Saves to a PLY file.
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_import_last_error
GLsizei const GLchar ** string
virtual void PLY_import_set_vertex(const size_t idx, const mrpt::math::TPoint3Df &pt, const mrpt::img::TColorf *pt_color=nullptr)=0
In a base class, will be called after PLY_import_set_vertex_count() once for each loaded point.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |