SPH
Public Member Functions | List of all members
PlyFile Class Reference

Exports meshes into a Polygon File Format (.ply file). More...

#include <MeshFile.h>

Inheritance diagram for PlyFile:
IMeshFile Polymorphic

Public Member Functions

virtual Outcome save (const Path &path, ArrayView< const Triangle > triangles) override
 
virtual Expected< Array< Triangle > > load (const Path &path) override
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Exports meshes into a Polygon File Format (.ply file).

See https://en.wikipedia.org/wiki/PLY_(file_format)

Definition at line 23 of file MeshFile.h.

Member Function Documentation

◆ load()

Expected< Array< Triangle > > PlyFile::load ( const Path path)
overridevirtual
Todo:
can be read directly from ifs, no need to go through stringstream

Implements IMeshFile.

Definition at line 51 of file MeshFile.cpp.

◆ save()

NAMESPACE_SPH_BEGIN Outcome PlyFile::save ( const Path path,
ArrayView< const Triangle triangles 
)
overridevirtual

Implements IMeshFile.

Definition at line 7 of file MeshFile.cpp.


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