38 const std::string& filename,
39 std::vector<std::string>* file_comments =
nullptr,
40 std::vector<std::string>* file_obj_info =
nullptr);
96 const std::string& filename,
bool save_in_binary =
false,
97 const std::vector<std::string>& file_comments =
98 std::vector<std::string>(),
99 const std::vector<std::string>& file_obj_info =
100 std::vector<std::string>())
const;
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 m_ply_import_last_error
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 size_t PLY_export_get_face_count() const =0
In a base class, return the number of faces.
std::string getSavePLYErrorString() const
Return a description of the error if loadFromPlyFile() returned false, or an empty string if the 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...
std::string getLoadPLYErrorString() const
Return a description of the error if loadFromPlyFile() returned false, or an empty string if the file...
A virtual base class that implements the capability of exporting 3D point clouds and faces to a file ...
std::string m_ply_export_last_error
An RGBA color - floats in the range [0,1].
The namespace for 3D scene representation and rendering.
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.
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...
A virtual base class that implements the capability of importing 3D point clouds and faces from a fil...
virtual size_t PLY_export_get_vertex_count() const =0
In a base class, return the number of vertices.
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.