Workspace 6.21.5
Public Member Functions | List of all members
PlyWriter Class Reference

Writes models in VTK ASCII or Binary format.

#include <Mesh/FileIO/Writers/plywriter.h>

Public Member Functions

 PlyWriter (const QString &fileName, bool truncateToFloat, const QString &vector3DComponentSuffix)
 
 ~PlyWriter ()
 
bool write (const MeshModelInterface &model)
 
bool write (const MeshModelInterface &model, QSysInfo::Endian byteOrder)
 

Constructor & Destructor Documentation

◆ PlyWriter()

PlyWriter ( const QString &  fileName,
bool  truncateToFloat,
const QString &  vector3DComponentSuffix 
)
Parameters
fileNameDefines the base file name for the writer.
truncateToFloatSet to true to truncate double-precision floating point to single-precision in order to reduce memory footprint.
vector3DComponentSuffixSuffix for vector3D type components which will be written to property with name "statename"+"Suffix"+"x/y/z".

◆ ~PlyWriter()

~PlyWriter ( )

Member Function Documentation

◆ write() [1/2]

bool write ( const MeshModelInterface model)

Write model to a Ply ASCII format file, including node state data if present.

◆ write() [2/2]

bool write ( const MeshModelInterface model,
QSysInfo::Endian  byteOrder 
)

Write model to a Ply binary format file, including node state data if present.

Parameters
modelThe model to export
byteOrderThe binary byte order to use. Typically set to QSysInfo::ByteOrder