Wildmeshing Toolkit
|
#include <TagIntersection.hpp>
Public Member Functions | |
void | compute_intersection (Mesh &m, const std::vector< std::tuple< attribute::MeshAttributeHandle, int64_t >> &input_tags, const std::vector< std::tuple< attribute::MeshAttributeHandle, int64_t >> &output_tags) |
Private Member Functions | |
bool | simplex_is_in_intersection (Mesh &m, const simplex::Simplex &s, const std::deque< TagAttribute > &input_tag_attributes) |
Check if a given simplex is in the intersection of a given set of tag attributes. More... | |
Definition at line 74 of file TagIntersection.hpp.
void wmtk::components::TagIntersection::compute_intersection | ( | Mesh & | m, |
const std::vector< std::tuple< attribute::MeshAttributeHandle, int64_t >> & | input_tags, | ||
const std::vector< std::tuple< attribute::MeshAttributeHandle, int64_t >> & | output_tags | ||
) |
m | Mesh with tags. |
input_tags | A vector that contain different tag attributes and the tag value which needs to be considered. |
output_tags | A vector of attibutehandles, which contains the intersection tags. |
Definition at line 32 of file TagIntersection.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::edge(), wmtk::simplex::Simplex::face(), wmtk::Mesh::get_all(), simplex_is_in_intersection(), wmtk::Tetrahedron, wmtk::simplex::Simplex::tetrahedron(), wmtk::Mesh::top_cell_dimension(), wmtk::Triangle, wmtk::Vertex, and wmtk::simplex::Simplex::vertex().
|
private |
Check if a given simplex is in the intersection of a given set of tag attributes.
We consider a simplex as tagged if any of its cofaces, i.e. any simplex in its open star, is tagged. If a simplex is tagged by all given attributes, it is in the intersection and the function returns true.
m | Mesh with tags. |
s | Candidate simplex for intersection check. |
input_tag_attributes | Vector of tag attributes that are considered in the intersection test. |
Definition at line 6 of file TagIntersection.cpp.
References wmtk::simplex::open_star(), and wmtk::simplex::SimplexCollection::simplex_vector().
Referenced by compute_intersection().