Skip to main content

MeshStream

The MeshStream class is a base class designed for creating custom mesh stream formats, providing virtual methods for loading and saving meshes through streams. It supports handling different mesh types and formats, serving as a foundation for implementing specific mesh stream formats and enabling the customization and extension of mesh handling functionality. The class also includes static methods for checking supported formats and retrieving lists of compatible load and save formats, offering flexibility in managing and working with various mesh stream formats.

#include <format/TellusimMesh.h>

Methods

virtual Basis getBasis() const
virtual bool info(Stream &stream, Mesh &mesh, Flags flags, Async *async)
virtual bool load(Stream &stream, Mesh &mesh, Flags flags, Async *async)
virtual bool save(Stream &stream, const Mesh &mesh, Flags flags)

Mesh stream formats.

static bool check(const String &name, uint32_t magic = 0)

List of supported formats.

static String getLoadFormats()
static String getSaveFormats()

Enums

Flags

NameValue
FlagNone0
FlagLoad(1 << 0)
FlagSave(1 << 1)
FlagLoadSave(FlagLoad | FlagSave)