1 #include <catch2/catch_test_macros.hpp>
3 #include <tools/DEBUG_TetMesh.hpp>
4 #include <tools/DEBUG_TriMesh.hpp>
5 #include <tools/TetMesh_examples.hpp>
6 #include <tools/TriMesh_examples.hpp>
12 using namespace components;
14 const std::filesystem::path
data_dir = WMTK_DATA_DIR;
17 "simplicial_embedding_component_tri",
18 "[components][simplicial_embedding][trimesh][2D][scheduler]")
20 tests::DEBUG_TriMesh m = wmtk::tests::hex_plus_two_with_position();
33 SECTION(
"points_in_2d_case")
58 data_dir /
"simplicial_embedding_result_0d_case",
68 SECTION(
"edges_in_2d_case")
104 data_dir /
"simplicial_embedding_result_1d_case",
117 "simplicial_embedding_component_tet",
118 "[components][simplicial_embedding][tetmesh][3D][scheduler][.]")
120 using namespace tests_3d;
133 DEBUG_TetMesh m = six_cycle_tets();
146 SECTION(
"points_in_3d_case")
162 data_dir /
"simplicial_embedding_result_points_3d_case",
172 SECTION(
"edges_in_3d_case")
200 data_dir /
"simplicial_embedding_result_edges_3d_case",
T & scalar_attribute(const ArgType &t)
void simplicial_embedding(Mesh &mesh, const SimplicialEmbeddingOptions &options)
std::map< PrimitiveType, attribute::MeshAttributeHandle > tag_attributes
All simplex dimensions must have an int64_t scalar attribute where the tags are stored.
int64_t value
The value that should be simplicially embedded.
std::vector< attribute::MeshAttributeHandle > pass_through_attributes
Other attributes that should be processed with the default behavior.
const std::filesystem::path data_dir
TEST_CASE("simplicial_embedding_component_tri", "[components][simplicial_embedding][trimesh][2D][scheduler]")