13 const std::filesystem::path& file,
14 const bool ignore_z_if_zero,
15 const std::vector<std::string>& tetrahedron_attributes)
21 if (!tetrahedron_attributes.empty()) {
24 return input(options).root().shared_from_this();
30 return input(options, {});
36 const auto [file_path, found] = resolver.
resolve(options.
file);
39 std::vector<std::string> path_strs;
43 std::back_inserter(path_strs),
44 [](
const std::filesystem::path& p) { return p.string(); });
47 "file [{}] not found (input path was [{}], paths searched were [{}]",
49 options.
file.string(),
50 fmt::join(path_strs,
","));
53 std::shared_ptr<Mesh> mesh;
71 assert(mesh->is_connectivity_valid());
void set_mesh(Mesh &m)
Navigates to the root of the multimesh.
void set_names(const nlohmann::json &js)
std::vector< std::filesystem::path > get_paths() const
std::pair< std::filesystem::path, bool > resolve(const std::filesystem::path &path) const
std::shared_ptr< Mesh > read_mesh(const std::filesystem::path &filename, FileType file_type)
void log_and_throw_error(const std::string &msg)