Skip to content
Open
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ endif()
# git repo used for wmtk data if it is required.
# use wmtk_download_data to obtain the path to the data
set(WMTK_DATA_REPOSITORY https://github.com/wildmeshing/data.git CACHE STRING "Git repo for testing data" )
set(WMTK_DATA_TAG 6f171d11283d2977913a1b4e6129f9808357baf9 CACHE STRING "git tag for testing data" )
set(WMTK_DATA_TAG 4d00f0c76599c4d9fa614d0abd6faab42fdb0a24 CACHE STRING "git tag for testing data" )


add_subdirectory(components)
Expand Down
1 change: 1 addition & 0 deletions applications/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ add_application(shortest_edge_collapse ON)
add_application(insertion ON)
add_application(convert ON)
add_application(longest_edge_split ON)
add_application(simplicial_embedding ON)


wmtk_generate_test_config("${WMTK_TEST_CONFIG}")
Expand Down
18 changes: 18 additions & 0 deletions applications/simplicial_embedding/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
wmtk_add_application(simplicial_embedding_app
simplicial_embedding_main.cpp
simplicial_embedding_spec.hpp
)




# delaunay requires the input component and the delaunay component
target_link_libraries(simplicial_embedding_app PRIVATE
wmtk::input
wmtk::simplicial_embedding
wmtk::output)

wmtk_register_integration_test(
EXEC_NAME simplicial_embedding_app
CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/simplicial_embedding_test_config.json
)
18 changes: 18 additions & 0 deletions applications/simplicial_embedding/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Simplicial Embedding

A substructure is simplicially embedded, if every simplex of the embedding contains only a single substructure simplex and its faces.

![simplicial embedding](img/regular_simplices.svg)

To create a simplicial embedding, we use the following split operations:

![simplex split](img/simplex_split.svg)

This application expects a .msh file with tags on tetrahedra that represent substructures. The tags must be integer numbers.

Currently, the application has two different modes.

1. Specify a `tag_value`: The mesh is modified such that it becomes a simplicial embedding of the given tag.
2. Set `embed_interfaces` to true: The interfaces between all substructures (including the boundary) are considered as substructure. The mesh is modified such that it becomes a simplicial embedding of that substructure. The `tag_value` is ignored in that mode.

The output is a .msh file with the modified mesh and the tag attribute.
Loading
Loading