BrepStream
The BrepStream class is a base class designed for creating custom brep stream formats, providing virtual methods for loading and saving brepes through streams. It supports handling different brep types and formats, serving as a foundation for implementing specific brep stream formats and enabling the customization and extension of brep 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 brep stream formats.
#include <format/TellusimBrep.h>
Methods
virtual Basis getBasis() const
virtual bool info(Stream &stream, Brep &brep, Flags flags, Async *async)
virtual bool load(Stream &stream, Brep &brep, Flags flags, Async *async)
virtual bool save(Stream &stream, const Brep &brep, Flags flags)
Brep stream formats.
static bool check(const String &name, uint32_t magic = 0)
List of supported formats.
static String getLoadFormats()
static String getSaveFormats()
Enums
Flags
Name | Value |
---|---|
FlagNone | 0 |
FlagLoad | (1 << 0) |
FlagSave | (1 << 1) |
FlagLoadSave | (FlagLoad | FlagSave) |