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

Simple text format containing mesh vertices and triangle indices. More...

#include <MeshFile.h>

Inheritance diagram for TabFile:
IMeshFile Polymorphic

Public Member Functions

 TabFile (const Float lengthUnit=1.e3_f)
 
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

Simple text format containing mesh vertices and triangle indices.

Used for example by Gaskell Itokawa Shape Model (https://sbn.psi.edu/pds/resource/itokawashape.html).

Definition at line 33 of file MeshFile.h.

Constructor & Destructor Documentation

◆ TabFile()

TabFile::TabFile ( const Float  lengthUnit = 1.e3_f)
explicit
Parameters
lengthUnitConversion factor from the loaded values to meters.

Definition at line 138 of file MeshFile.cpp.

Member Function Documentation

◆ load()

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

Implements IMeshFile.

Definition at line 147 of file MeshFile.cpp.

◆ save()

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

Implements IMeshFile.

Definition at line 141 of file MeshFile.cpp.


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