Wildmeshing Toolkit
mesh_with_tag_from_image.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <wmtk/TriMesh.hpp>
4 
5 #include <filesystem>
6 namespace wmtk::components::input {
7 
8 
18 std::shared_ptr<wmtk::TriMesh> mesh_with_tag_from_image(
19  const std::filesystem::path& file,
20  const std::string& tag_name);
21 } // namespace wmtk::components::input
std::shared_ptr< wmtk::TriMesh > mesh_with_tag_from_image(const std::filesystem::path &file, const std::string &tag_name)
Build a tagged triangle mesh from a greyscale image.