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

Text format containing mesh vertices (prefixed by 'v') and triangle indices (prefixed by 'f') More...

#include <MeshFile.h>

Inheritance diagram for ObjFile:
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

Text format containing mesh vertices (prefixed by 'v') and triangle indices (prefixed by 'f')

Definition at line 47 of file MeshFile.h.

Member Function Documentation

◆ load()

Expected< Array< Triangle > > ObjFile::load ( const Path path)
overridevirtual

Implements IMeshFile.

Definition at line 185 of file MeshFile.cpp.

◆ save()

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

Implements IMeshFile.

Definition at line 179 of file MeshFile.cpp.


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