Easy3D 2.5.3
PlyWriter Class Reference

A general purpose PLY file writer. More...

#include <easy3d/fileio/ply_reader_writer.h>

Static Public Member Functions

static bool write (const std::string &file_name, const std::vector< Element > &elements, const std::string &comment="", bool binary=false)
 Saves a model stored as a set of elements to file file_name. More...
 

Detailed Description

A general purpose PLY file writer.

This class is internally used by PointCloudIO, SurfaceMeshIO, and GraphIO. Client code should use PointCloudIO, SurfaceMeshIO, and GraphIO.

Member Function Documentation

◆ write()

static bool write ( const std::string &  file_name,
const std::vector< Element > &  elements,
const std::string &  comment = "",
bool  binary = false 
)
static

Saves a model stored as a set of elements to file file_name.

Parameters
binarytrue for binary format, otherwise ASCII format.
Returns
The status of the operation
  • true if succeeded
  • false if failed

The documentation for this class was generated from the following file: