12 std::filesystem::path file_path = filename;
13 std::ifstream fs_file(filename);
14 if (!fs_file.is_open()) {
15 std::filesystem::path absolute_path = std::filesystem::absolute(file_path);
16 throw std::runtime_error(
"Could not open mesh file: " +
17 absolute_path.string());
20 return json::parse(fs_file);