Wildmeshing Toolkit
GridOptions.cpp
Go to the documentation of this file.
1 #include "make_mesh.hpp"
2 #include <wmtk/Mesh.hpp>
3 #include <wmtk/TriMesh.hpp>
4 #include <wmtk/TetMesh.hpp>
5 #include "GridOptions.hpp"
6 #include "Grid2Options.hpp"
7 #include "Grid3Options.hpp"
8 
9 
10 
12 std::shared_ptr<Mesh> make_mesh(const GridOptions& m) {
13  return std::visit([](const auto& o) -> std::shared_ptr<Mesh>{
14  return std::static_pointer_cast<Mesh>(make_mesh(o));
15  },m.opts);
16 
17 }
18 }
std::variant< Grid2Options, Grid3Options > opts
Definition: GridOptions.hpp:15
std::shared_ptr< TriMesh > make_mesh(const DiskOptions &opt)
Definition: DiskOptions.cpp:10