Loading...
Searching...
No Matches
io.hpp File Reference
#include "mesh.hpp"
#include <filesystem>
#include <functional>
#include <istream>
Include dependency graph for io.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  meshkit::IOOptions
 Options shared by the MKB and 2DM readers and writers. More...
 
struct  meshkit::IOReport
 Outcome of one read or write: status, code, message, counts, timing and byte total. More...
 
struct  meshkit::ReadResult
 Mesh and report returned by the readers. More...
 

Namespaces

namespace  meshkit
 The Qt-free MeshKit library: job events and progress (meshkit::runtime), the neutral mesh model, meshing jobs, the constrained Delaunay kernel and terrain surfaces (meshkit::core), and the MKB and SMS 2DM codecs (meshkit::io).
 

Enumerations

enum class  meshkit::UnknownRecords {
  meshkit::Reject ,
  meshkit::IgnoreWithReport
}
 How read2dm() treats a card other than MESH2D, ND, E3T, E4Q or NS. More...
 

Functions

ReadResult meshkit::readBinary (std::istream &, const IOOptions &={})
 Read a version-1 MeshKit binary (MKB) mesh from a stream.
 
ReadResult meshkit::readBinary (const std::filesystem::path &, const IOOptions &={})
 Open a file in binary mode and read it as MKB, as the stream overload does.
 
IOReport meshkit::writeBinary (const std::filesystem::path &, const Mesh &, const IOOptions &={})
 Validate a mesh and atomically publish it to a path as version-1 MKB.
 
ReadResult meshkit::read2dm (const std::filesystem::path &, const IOOptions &={})
 Read an SMS 2DM file in two passes (nodes, then elements and node strings).
 
IOReport meshkit::write2dm (const std::filesystem::path &, const Mesh &, const IOOptions &={})
 Validate a mesh and atomically publish it to a path as SMS 2DM.