11 if (suffix ==
".hdf5") {
13 }
else if (suffix ==
".msh") {
22 const auto extension = filename.extension().string();
27 "Automatic file type detection could not identify type of file {} with extension of {}",
43 return reader.
read(filename);
47 return reader.
read(filename);
57 const std::filesystem::path& filename,
58 const std::vector<std::vector<std::string>>& retrieved_attributes,
67 return reader.
read(filename);
71 return reader.
read(filename, -1, retrieved_attributes);
82 const std::filesystem::path& filename,
83 const bool ignore_z_if_zero,
84 const std::vector<std::string>& tetrahedron_attributes,
93 return reader.
read(filename);
97 return reader.
read(filename, ignore_z_if_zero, tetrahedron_attributes);
std::shared_ptr< Mesh > read(const std::filesystem::path &filename)
std::shared_ptr< Mesh > read(const std::filesystem::path &filename, const bool ignore_z_if_zero, const std::vector< std::string > &extra_facet_attributes={})
FileType guess_file_type(const std::filesystem::path &filename)
FileType guess_file_type_from_extension(const std::string_view &suffix)
std::shared_ptr< Mesh > read_mesh(const std::filesystem::path &filename, FileType file_type)
void log_and_throw_error(const std::string &msg)