Easy3D 2.6.1
Loading...
Searching...
No Matches
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 a file.
 

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 a file.

Parameters
file_nameThe name of the output file.
elementsThe model elements to save.
commentThe comment to be written to the file.
binaryTrue for binary format, otherwise ASCII format.
Returns
True if the file was successfully written, false otherwise.

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