Wildmeshing Toolkit
Loading...
Searching...
No Matches
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
12std::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
std::shared_ptr< wmtk::Mesh > make_mesh()
Definition utils.cpp:6