Wildmeshing Toolkit
|
This class is a utility to perform breadth first search on simplices. More...
Classes | |
struct | HomogeneousSimplexEqualFunctor |
struct | HomogeneousSimplexLessFunctor |
struct | SimplexEqualFunctor |
struct | SimplexLessFunctor |
class | VisitedArray |
Functions | |
std::vector< Tuple > | coface_preserving_boundary_tuples (const Mesh &mesh, const Tuple &t, PrimitiveType pt, PrimitiveType coface_pt) |
Returns the boundary of a simplex ignoring some sorts of switches. More... | |
std::vector< Tuple > | boundary_with_preserved_face_tuples (const Mesh &mesh, const Tuple &t, PrimitiveType pt, PrimitiveType face_pt) |
Returns the faces (single-dimension) of a simplex that are also cofaces of a given face. More... | |
std::vector< Tuple > | boundary_with_preserved_face_tuples (const Mesh &mesh, const Simplex &simplex, PrimitiveType face_pt) |
Returns the faces (single-dimension) of a simplex that are also cofaces of a given face. More... | |
std::vector< Simplex > | boundary_with_preserved_face_simplices (const Mesh &mesh, const Tuple &t, PrimitiveType pt, PrimitiveType face_pt) |
Returns the faces (single-dimension) of a simplex that are also cofaces of a given face. More... | |
std::vector< Simplex > | boundary_with_preserved_face_simplices (const Mesh &mesh, const Simplex &simplex, PrimitiveType face_pt) |
Returns the faces (single-dimension) of a simplex that are also cofaces of a given face. More... | |
This class is a utility to perform breadth first search on simplices.
std::vector< Simplex > wmtk::simplex::internal::boundary_with_preserved_face_simplices | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
PrimitiveType | face_pt | ||
) |
Returns the faces (single-dimension) of a simplex that are also cofaces of a given face.
mesh | The mesh containing the simplex. |
simplex | The simplex whose faces we are computing. |
face_pt | Primitive type of the face being preserved. |
Definition at line 72 of file boundary_with_preserved_face.cpp.
References boundary_with_preserved_face_simplices(), wmtk::simplex::Simplex::primitive_type(), and wmtk::simplex::Simplex::tuple().
std::vector< Simplex > wmtk::simplex::internal::boundary_with_preserved_face_simplices | ( | const Mesh & | mesh, |
const Tuple & | t, | ||
PrimitiveType | pt, | ||
PrimitiveType | face_pt | ||
) |
Returns the faces (single-dimension) of a simplex that are also cofaces of a given face.
Say the l-simplex B is a face of a k-simplex S, then this function returns the faces of S that are also cofaces of B. B and S are encoded within a single tuple t and two primitive types pt and face_pt. The returned tuples always contain B.
This function supports cofaces_single_dimension.
mesh | The mesh containing the simplex. |
tuple | The tuple of the simplex whose faces we are computing. |
pt | Primitive type of the simplex whose faces we are computing. |
face_pt | Primitive type of the face being preserved. |
Definition at line 57 of file boundary_with_preserved_face.cpp.
References boundary_with_preserved_face_tuples(), wmtk::get_primitive_type_from_id(), wmtk::get_primitive_type_id(), wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector(), and wmtk::Vertex.
Referenced by boundary_with_preserved_face_simplices().
std::vector< Tuple > wmtk::simplex::internal::boundary_with_preserved_face_tuples | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
PrimitiveType | face_pt | ||
) |
Returns the faces (single-dimension) of a simplex that are also cofaces of a given face.
mesh | The mesh containing the simplex. |
simplex | The simplex whose faces we are computing. |
face_pt | Primitive type of the face being preserved. |
Definition at line 48 of file boundary_with_preserved_face.cpp.
References boundary_with_preserved_face_tuples(), wmtk::simplex::Simplex::primitive_type(), and wmtk::simplex::Simplex::tuple().
std::vector< Tuple > wmtk::simplex::internal::boundary_with_preserved_face_tuples | ( | const Mesh & | mesh, |
const Tuple & | t, | ||
PrimitiveType | pt, | ||
PrimitiveType | face_pt | ||
) |
Returns the faces (single-dimension) of a simplex that are also cofaces of a given face.
Say the l-simplex B is a face of a k-simplex S, then this function returns the faces of S that are also cofaces of B. B and S are encoded within a single tuple t and two primitive types pt and face_pt. The returned tuples always contain B.
This function supports cofaces_single_dimension.
Example 1: given a triangle and a vertex that is a face of the triangle, this function computes the edges that are faces of the triangle and also cofaces of the vertex.
Example 2: given a tetrahedron and a vertex that is a face of the tetrahedron, this function computes the triangles that are faces of the tetrahedron and also cofaces of the vertex.
Example 3: given a tetrahedron and an edge that is a face of the tetrahedron, this function computes the triangles that are faces of the tetrahedron and also cofaces of the edge.
mesh | The mesh containing the simplex. |
tuple | The tuple of the simplex whose faces we are computing. |
pt | Primitive type of the simplex whose faces we are computing. |
face_pt | Primitive type of the face being preserved. |
Definition at line 7 of file boundary_with_preserved_face.cpp.
References wmtk::Edge, wmtk::PE, PF, PT, wmtk::PV, wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
Referenced by boundary_with_preserved_face_simplices(), boundary_with_preserved_face_tuples(), and wmtk::simplex::cofaces_single_dimension_tuples().
std::vector<Tuple> wmtk::simplex::internal::coface_preserving_boundary_tuples | ( | const Mesh & | mesh, |
const Tuple & | t, | ||
PrimitiveType | pt, | ||
PrimitiveType | coface_pt | ||
) |
Returns the boundary of a simplex ignoring some sorts of switches.
Say the input k-simplex S is a coface of a l-simplex B. Then this function returns the boundary simplices of S that are still cofaces. Because preserving being a coface of B does not require tracking B itself, but just its dimension l we pass in a primitive type instead. This function supports cofaces_single_dimension.
mesh | The mesh containing the simplex |
tuple | The tuple of the simplex |
pt | primitive type of the simplex |
coface_pt | primitive type of the coface |