A virtual base class that implements the capability of exporting 3D point clouds and faces to a file in the Stanford PLY format.
- See also
- http://www.mrpt.org/Support_for_the_Stanford_3D_models_file_format_PLY
-
PLY_Importer
Definition at line 71 of file PLY_import_export.h.
#include <mrpt/utils/PLY_import_export.h>
◆ getSavePLYErrorString()
std::string mrpt::utils::PLY_Exporter::getSavePLYErrorString |
( |
| ) |
const |
|
inline |
Return a description of the error if loadFromPlyFile() returned false, or an empty string if the file was loaded without problems.
Definition at line 87 of file PLY_import_export.h.
◆ PLY_export_get_face_count()
virtual size_t mrpt::utils::PLY_Exporter::PLY_export_get_face_count |
( |
| ) |
const |
|
protectedpure virtual |
◆ PLY_export_get_vertex()
◆ PLY_export_get_vertex_count()
virtual size_t mrpt::utils::PLY_Exporter::PLY_export_get_vertex_count |
( |
| ) |
const |
|
protectedpure virtual |
◆ saveToPlyFile()
Saves to a PLY file.
- Parameters
-
[in] | filename | The filename to be saved. |
[in] | file_comments | If provided (!=NULL) the list of comment strings stored in the file will be returned. |
[in] | file_obj_info | If provided (!=NULL) the list of "object info" strings stored in the file will be returned. |
- Returns
- false on any error writing the file. To obtain more details on the error you can call getSavePLYErrorString()
Definition at line 1993 of file PLY_import_export.cpp.
References mrpt::utils::TColorf::B, face_props, mrpt::utils::TColorf::G, TVertex::intensity, PLY_ASCII, PLY_BINARY_BE, PLY_BINARY_LE, ply_close(), ply_describe_property(), ply_element_count(), ply_header_complete(), ply_open_for_writing(), ply_put_comment(), ply_put_element(), ply_put_element_setup(), ply_put_obj_info(), mrpt::utils::TColorf::R, mrpt::utils::CStringList::size(), version, vert_props, mrpt::math::TPoint3Df::x, TVertex::x, mrpt::math::TPoint3Df::y, TVertex::y, mrpt::math::TPoint3Df::z, and TVertex::z.
◆ m_ply_export_last_error
std::string mrpt::utils::PLY_Exporter::m_ply_export_last_error |
|
mutableprivate |