Wildmeshing Toolkit
|
#include <HDF5Reader.hpp>
Public Member Functions | |
HDF5Reader () | |
std::shared_ptr< Mesh > | read (const std::filesystem::path &filename) |
Private Member Functions | |
std::shared_ptr< Mesh > | read_mesh (h5pp::File &hdf5_file, const std::string &dataset) |
template<typename T > | |
void | set_attribute (const T &default_val, const std::string &name, PrimitiveType pt, int64_t stride, const std::vector< T > &v, Mesh &mesh) |
Definition at line 16 of file HDF5Reader.hpp.
wmtk::HDF5Reader::HDF5Reader | ( | ) |
Definition at line 41 of file HDF5Reader.cpp.
std::shared_ptr< Mesh > wmtk::HDF5Reader::read | ( | const std::filesystem::path & | filename | ) |
Definition at line 44 of file HDF5Reader.cpp.
Referenced by wmtk::io::read_mesh().
|
private |
Definition at line 123 of file HDF5Reader.cpp.
References wmtk::Edge, wmtk::Rational::init_from_binary(), wmtk::logger(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
|
private |
Definition at line 208 of file HDF5Reader.cpp.
References wmtk::attribute::MeshAttributeHandle::as(), wmtk::Mesh::get_attribute_dimension(), wmtk::Mesh::get_attribute_handle(), wmtk::Mesh::has_attribute(), wmtk::log_and_throw_error(), and wmtk::Mesh::register_attribute().