Wildmeshing Toolkit
|
Namespaces | |
internal | |
This class is a utility to perform breadth first search on simplices. | |
utils | |
Classes | |
class | IdSimplex |
class | IdSimplexCollection |
class | ClosedStarIterable |
This iterator internally uses TopDimensionCofacesIterable. More... | |
class | CofacesInSimplexIterable |
Get all cofaces that are in a specific simplex type. More... | |
class | CofacesSingleDimensionIterable |
This iterator internally uses TopDimensionCofacesIterable. More... | |
class | FacesIterable |
class | HalfClosedStarIterable |
This iterator internally uses TopDimensionCofacesIterable. More... | |
class | LinkIterable |
This iterator internally uses TopDimensionCofacesIterable. More... | |
class | LinkSingleDimensionIterable |
This iterator internally uses TopDimensionCofacesIterable. More... | |
class | OpenStarIterable |
This iterator internally uses TopDimensionCofacesIterable. More... | |
class | TopDimensionCofacesIterable |
Iterating through the d-simplices of a mesh can be done in different ways, depending on the simplex dimension x around which the iteration is done. More... | |
class | NavigatableSimplex |
class | RawSimplex |
A meshless implementation of the simplex that just stores an array of ids. More... | |
class | RawSimplexCollection |
class | Simplex |
class | SimplexCollection |
Functions | |
std::vector< Tuple > | boundary_tuples (const Mesh &m, const Tuple &t, PrimitiveType pt) |
std::vector< Tuple > | boundary_tuples (const Mesh &mesh, const Simplex &simplex) |
SimplexCollection | boundary (const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean=true) |
Returns all boundary simplices of a simplex. More... | |
SimplexCollection | closed_star (const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean=true) |
The closed star contains the input simplex, all its top dimension cofaces, and their faces. More... | |
ClosedStarIterable | closed_star_iterable (const Mesh &mesh, const Simplex &simplex) |
CofacesInSimplexIterable | cofaces_in_simplex_iterable (const Mesh &mesh, const Simplex &simplex, const PrimitiveType in_simplex_type) |
std::vector< Tuple > | cofaces_single_dimension_tuples (const Mesh &mesh, const Simplex &my_simplex, PrimitiveType cofaces_type) |
std::vector< Simplex > | cofaces_single_dimension_simplices (const Mesh &mesh, const Simplex &simplex, PrimitiveType cofaces_type) |
SimplexCollection | cofaces_single_dimension (const Mesh &mesh, const Simplex &my_simplex, PrimitiveType cofaces_type, bool sort_and_clean=true) |
Returns all cofaces of a simplex that are of the provided primitive type. More... | |
SimplexCollection | cofaces_single_dimension (const TriMesh &mesh, const Simplex &my_simplex, PrimitiveType cofaces_type, bool sort_and_clean) |
std::vector< Tuple > | cofaces_single_dimension_tuples (const TriMesh &mesh, const Simplex &my_simplex, PrimitiveType cofaces_type) |
std::vector< Simplex > | cofaces_single_dimension_simplices (const TriMesh &mesh, const Simplex &simplex, PrimitiveType cofaces_type) |
CofacesSingleDimensionIterable | cofaces_single_dimension_iterable (const Mesh &mesh, const Simplex &simplex, const PrimitiveType cofaces_type) |
SimplexCollection | faces (const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean=true) |
Returns all faces of a simplex. More... | |
void | faces (SimplexCollection &simplex_collection, const Simplex &simplex, const bool sort_and_clean) |
FacesIterable | faces_iterable (const Mesh &mesh, const Simplex &simplex) |
std::vector< Tuple > | vertices (const Mesh &m, const Simplex &simplex) |
void | vertices (SimplexCollection &simplex_collection, const Simplex &simplex) |
std::vector< Tuple > | edges (const Mesh &m, const Simplex &simplex) |
void | edges (SimplexCollection &simplex_collection, const Simplex &simplex) |
std::vector< Tuple > | faces (const Mesh &m, const Simplex &simplex) |
void | faces (SimplexCollection &simplex_collection, const Simplex &simplex) |
SimplexCollection | faces_single_dimension (const Mesh &mesh, const Simplex &simplex, const PrimitiveType face_type) |
Returns a vector with all faces in the boundary of a simplex of the given dimension. More... | |
void | faces_single_dimension (SimplexCollection &simplex_collection, const Simplex &simplex, const PrimitiveType face_type) |
std::vector< Tuple > | faces_single_dimension_tuples (const Mesh &mesh, const Simplex &simplex, const PrimitiveType face_type) |
HalfClosedStarIterable | half_closed_star_iterable (const Mesh &mesh, const Tuple &tuple) |
The half closed star is used to determine the deleted simplices in an edge collapse. More... | |
std::vector< Tuple > | coface_preserving_boundary_tuples (const Mesh &mesh, const Tuple &t, PrimitiveType pt, PrimtiiveType coface_pt) |
SimplexCollection | k_ring (const Mesh &mesh, const Simplex &simplex, int64_t k) |
SimplexCollection | link (const Mesh &mesh, const simplex::Simplex &simplex, const bool sort_and_clean) |
SimplexCollection | link (const TriMesh &mesh, const simplex::Simplex &simplex, const bool sort_and_clean) |
SimplexCollection | link (const TetMesh &mesh, const simplex::Simplex &simplex, const bool sort_and_clean) |
SimplexCollection | link_slow (const Mesh &mesh, const simplex::Simplex &simplex, const bool sort_and_clean) |
bool | link_condition_closed_trimesh (const TriMesh &mesh, const Tuple &edge) |
bool | link_condition (const EdgeMesh &mesh, const Tuple &edge) |
Check if the edge to collapse satisfying the link condition. More... | |
bool | link_condition (const TriMesh &mesh, const Tuple &edge) |
bool | link_condition_closed_tetmesh (const TetMesh &mesh, const Tuple &edge) |
bool | link_condition (const TetMesh &mesh, const Tuple &edge) |
bool | link_condition (const Mesh &mesh, const Tuple &edge) |
LinkIterable | link_iterable (const Mesh &mesh, const Simplex &simplex) |
SimplexCollection | link_single_dimension (const Mesh &mesh, const simplex::Simplex &simplex, const PrimitiveType link_type, const bool sort_and_clean) |
SimplexCollection | link_single_dimension (const TriMesh &mesh, const simplex::Simplex &simplex, const PrimitiveType link_type, const bool sort_and_clean) |
SimplexCollection | link_single_dimension (const TetMesh &mesh, const simplex::Simplex &simplex, const PrimitiveType link_type, const bool sort_and_clean) |
SimplexCollection | link_single_dimension_slow (const Mesh &mesh, const simplex::Simplex &simplex, const PrimitiveType link_type, const bool sort_and_clean) |
LinkSingleDimensionIterable | link_single_dimension_iterable (const Mesh &mesh, const Simplex &simplex, const PrimitiveType link_type) |
std::vector< Simplex > | neighbors_single_dimension (const Mesh &m, const Simplex &s, const PrimitiveType pt) |
std::vector< Tuple > | neighbors_single_dimension_tuples (const Mesh &m, const Simplex &s, const PrimitiveType tpt) |
SimplexCollection | open_star (const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean) |
SimplexCollection | open_star (const TriMesh &mesh, const Simplex &simplex, const bool sort_and_clean) |
SimplexCollection | open_star (const TetMesh &mesh, const Simplex &simplex, const bool sort_and_clean) |
SimplexCollection | open_star_slow (const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean) |
OpenStarIterable | open_star_iterable (const Mesh &mesh, const Simplex &simplex) |
void | top_dimension_cofaces (const Simplex &simplex, SimplexCollection &simplex_collection, const bool sort_and_clean=true) |
Get all top dimension cofaces of the given simplex. More... | |
void | top_dimension_cofaces_tuples (const PointMesh &mesh, const Simplex &simplex, SimplexCollection &collection) |
void | top_dimension_cofaces_tuples (const EdgeMesh &mesh, const Simplex &simplex, SimplexCollection &collection) |
void | top_dimension_cofaces_tuples (const TriMesh &mesh, const Simplex &simplex, SimplexCollection &collection) |
void | top_dimension_cofaces_tuples (const TetMesh &mesh, const Simplex &simplex, SimplexCollection &collection) |
void | top_dimension_cofaces_tuples (const Mesh &mesh, const Simplex &simplex, SimplexCollection &collection) |
The same as top_dimension_cofaces but it appends to a vector of tuples. More... | |
void | top_dimension_cofaces_tuples (const PointMesh &mesh, const Simplex &simplex, std::vector< Tuple > &collection) |
void | top_dimension_cofaces_tuples (const EdgeMesh &mesh, const Simplex &simplex, std::vector< Tuple > &collection) |
void | top_dimension_cofaces_tuples (const TriMesh &mesh, const Simplex &simplex, std::vector< Tuple > &collection) |
void | top_dimension_cofaces_tuples (const TetMesh &mesh, const Simplex &simplex, std::vector< Tuple > &collection) |
void | top_dimension_cofaces_tuples (const Mesh &mesh, const Simplex &simplex, std::vector< Tuple > &tuples) |
SimplexCollection | top_dimension_cofaces (const TriMesh &mesh, const Simplex &simplex, const bool sort_and_clean) |
SimplexCollection | top_dimension_cofaces (const TetMesh &mesh, const Simplex &simplex, const bool sort_and_clean) |
SimplexCollection | top_dimension_cofaces (const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean=true) |
Get all top dimension cofaces of the given simplex. More... | |
std::vector< Tuple > | top_dimension_cofaces_tuples (const PointMesh &mesh, const Simplex &simplex) |
std::vector< Tuple > | top_dimension_cofaces_tuples (const EdgeMesh &mesh, const Simplex &simplex) |
std::vector< Tuple > | top_dimension_cofaces_tuples (const TriMesh &mesh, const Simplex &simplex) |
std::vector< Tuple > | top_dimension_cofaces_tuples (const TetMesh &mesh, const Simplex &simplex) |
std::vector< Tuple > | top_dimension_cofaces_tuples (const Mesh &mesh, const Simplex &simplex) |
The same as top_dimension_cofaces but it returns only a vector of tuples. More... | |
TopDimensionCofacesIterable | top_dimension_cofaces_iterable (const Mesh &mesh, const Simplex &simplex) |
std::vector< Tuple > | tuples_preserving_primitive_types (const Mesh &mesh, const Tuple &t, const PrimitiveType ptype1, const PrimitiveType ptype2) |
Compute all tuples that contain simplex(ptype1, t) and that are contained by simplex(ptype2, t). More... | |
SimplexCollection wmtk::simplex::boundary | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean = true |
||
) |
Returns all boundary simplices of a simplex.
The boundary simplices are the k-1 simplices that bound the given k-simplex. This does not include the given simplex itself!
mesh | The mesh containing the simplex |
simplex | The simplex |
sort_and_clean | Call SimplexCollection::sort_and_clean before returning |
SimplexCollection
holding the boundary Definition at line 44 of file boundary.cpp.
References boundary_tuples(), wmtk::get_primitive_type_from_id(), wmtk::get_primitive_type_id(), wmtk::simplex::Simplex::primitive_type(), wmtk::simplex::SimplexCollection::sort_and_clean(), and wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector().
std::vector< Tuple > wmtk::simplex::boundary_tuples | ( | const Mesh & | m, |
const Tuple & | t, | ||
PrimitiveType | pt | ||
) |
Definition at line 7 of file boundary.cpp.
References wmtk::Edge, wmtk::PE, PF, PT, wmtk::PV, wmtk::Mesh::switch_tuple(), wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
Referenced by boundary(), and boundary_tuples().
Definition at line 39 of file boundary.cpp.
References boundary_tuples(), wmtk::simplex::Simplex::primitive_type(), and wmtk::simplex::Simplex::tuple().
SimplexCollection wmtk::simplex::closed_star | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean = true |
||
) |
The closed star contains the input simplex, all its top dimension cofaces, and their faces.
mesh | The mesh to which the simplex and its closed star belong. |
simplex | The simplex of which the closed star is computed. |
Definition at line 13 of file closed_star.cpp.
References wmtk::simplex::SimplexCollection::add(), wmtk::Edge, faces(), wmtk::Mesh::is_valid(), wmtk::log_and_throw_error(), wmtk::simplex::SimplexCollection::reserve(), wmtk::simplex::SimplexCollection::simplex_vector(), wmtk::simplex::SimplexCollection::sort_and_clean(), wmtk::Tetrahedron, top_dimension_cofaces(), wmtk::Mesh::top_simplex_type(), wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
Referenced by wmtk::mesh_utils::compute_vertex_normal(), wmtk::operations::composite::TetEdgeSwap::execute(), link_single_dimension_slow(), link_slow(), and wmtk::TriMesh::TriMeshOperationExecutor::split_edge_precompute().
ClosedStarIterable wmtk::simplex::closed_star_iterable | ( | const Mesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 5 of file closed_star_iterable.cpp.
Referenced by wmtk::operations::Operation::apply_attribute_transfer(), and wmtk::TriMesh::TriMeshOperationExecutor::collapse_edge_precompute().
std::vector<Tuple> wmtk::simplex::coface_preserving_boundary_tuples | ( | const Mesh & | mesh, |
const Tuple & | t, | ||
PrimitiveType | pt, | ||
PrimtiiveType | coface_pt | ||
) |
Definition at line 6 of file boundary_with_preserved_coface.cpp.
References wmtk::Edge, wmtk::PE, PF, PT, wmtk::PV, wmtk::Tetrahedron, and wmtk::Vertex.
CofacesInSimplexIterable wmtk::simplex::cofaces_in_simplex_iterable | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const PrimitiveType | in_simplex_type | ||
) |
Definition at line 5 of file cofaces_in_simplex_iterable.cpp.
SimplexCollection wmtk::simplex::cofaces_single_dimension | ( | const Mesh & | mesh, |
const Simplex & | my_simplex, | ||
PrimitiveType | cofaces_type, | ||
bool | sort_and_clean = true |
||
) |
Returns all cofaces of a simplex that are of the provided primitive type.
The coface tuples are guaranteed to contain the provided simplex in their tuple.
mesh | The mesh containing the simplex. |
my_simplex | The simplex whose cofaces we are computing. |
cofaces_type | The primitive type of the cofaces. |
Definition at line 165 of file cofaces_single_dimension.cpp.
References cofaces_single_dimension_simplices(), and wmtk::simplex::SimplexCollection::sort_and_clean().
SimplexCollection wmtk::simplex::cofaces_single_dimension | ( | const TriMesh & | mesh, |
const Simplex & | my_simplex, | ||
PrimitiveType | cofaces_type, | ||
bool | sort_and_clean | ||
) |
Definition at line 181 of file cofaces_single_dimension.cpp.
References cofaces_single_dimension_simplices(), and wmtk::simplex::SimplexCollection::sort().
CofacesSingleDimensionIterable wmtk::simplex::cofaces_single_dimension_iterable | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const PrimitiveType | cofaces_type | ||
) |
Definition at line 5 of file cofaces_single_dimension_iterable.cpp.
Referenced by wmtk::TetMesh::is_boundary_edge(), and link_condition().
std::vector< Simplex > wmtk::simplex::cofaces_single_dimension_simplices | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
PrimitiveType | cofaces_type | ||
) |
Definition at line 154 of file cofaces_single_dimension.cpp.
References cofaces_single_dimension_tuples(), and wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector().
Referenced by wmtk::invariants::TetMeshSubstructureTopologyPreservingInvariant::before(), wmtk::invariants::TriMeshSubstructureTopologyPreservingInvariant::before(), cofaces_single_dimension(), wmtk::function::LocalNeighborsSumFunction::domain(), wmtk::operations::AMIPSOptimizationSmoothing::execute(), and wmtk::operations::AMIPSOptimizationSmoothingPeriodic::execute().
std::vector< Simplex > wmtk::simplex::cofaces_single_dimension_simplices | ( | const TriMesh & | mesh, |
const Simplex & | simplex, | ||
PrimitiveType | cofaces_type | ||
) |
Definition at line 215 of file cofaces_single_dimension.cpp.
References cofaces_single_dimension_tuples(), and wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector().
std::vector< Tuple > wmtk::simplex::cofaces_single_dimension_tuples | ( | const Mesh & | mesh, |
const Simplex & | my_simplex, | ||
PrimitiveType | cofaces_type | ||
) |
Definition at line 130 of file cofaces_single_dimension.cpp.
References wmtk::simplex::internal::boundary_with_preserved_face_tuples(), wmtk::utils::primitive_range(), wmtk::simplex::Simplex::primitive_type(), top_dimension_cofaces_tuples(), wmtk::Mesh::top_simplex_type(), and wmtk::simplex::Simplex::tuple().
Referenced by cofaces_single_dimension_simplices(), wmtk::multimesh::MultiMeshManager::map_to_child_tuples(), neighbors_single_dimension_tuples(), and wmtk::components::Marching::process().
std::vector< Tuple > wmtk::simplex::cofaces_single_dimension_tuples | ( | const TriMesh & | mesh, |
const Simplex & | my_simplex, | ||
PrimitiveType | cofaces_type | ||
) |
Definition at line 197 of file cofaces_single_dimension.cpp.
References wmtk::Edge, wmtk::log_and_throw_error(), wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
Definition at line 77 of file faces_single_dimension.cpp.
References wmtk::Edge, wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), wmtk::PV, wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
Referenced by wmtk::components::collapsing(), wmtk::components::internal::edge_insertion(), wmtk::invariants::EnvelopeInvariant::EnvelopeInvariant(), faces_single_dimension(), faces_single_dimension_tuples(), wmtk::utils::filter_pointers_to_derived(), wmtk::components::swapping(), and TEST_CASE().
void wmtk::simplex::edges | ( | SimplexCollection & | simplex_collection, |
const Simplex & | simplex | ||
) |
Definition at line 104 of file faces_single_dimension.cpp.
References wmtk::simplex::SimplexCollection::add(), wmtk::Edge, wmtk::simplex::SimplexCollection::mesh(), wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), wmtk::PV, wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
Definition at line 141 of file faces_single_dimension.cpp.
References wmtk::Edge, wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), wmtk::PV, wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
SimplexCollection wmtk::simplex::faces | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean = true |
||
) |
Returns all faces of a simplex.
The faces are all lower dimensional simplices that bound the given k-simplex. This does not include the given simplex itself!
mesh | The mesh containing the simplex |
simplex | The simplex |
sort_and_clean | Call SimplexCollection::sort_and_clean before returning |
SimplexCollection
holding the faces Definition at line 10 of file faces.cpp.
Referenced by wmtk::components::AABBWrapper::AABBWrapper(), wmtk::invariants::EnvelopeInvariant::after(), closed_star(), wmtk::TriMesh::TriMeshOperationExecutor::collapse_edge_precompute(), wmtk::components::delaunay_exec(), wmtk::invariants::EnvelopeInvariant::EnvelopeInvariant(), faces_single_dimension(), faces_single_dimension_tuples(), wmtk::TriMesh::TriMeshOperationExecutor::get_collapse_simplices_to_delete(), wmtk::function::utils::get_simplex_attributes(), link_single_dimension_slow(), link_slow(), open_star_slow(), wmtk::operations::composite::ProjectOperation::ProjectOperation(), wmtk::components::internal::RegularSpace::regularize_tags(), wmtk::TriMesh::TriMeshOperationExecutor::split_edge_precompute(), TEST_CASE(), wmtk::components::tetwild_simplification(), and wmtk::components::to_points().
void wmtk::simplex::faces | ( | SimplexCollection & | simplex_collection, |
const Simplex & | simplex | ||
) |
Definition at line 162 of file faces_single_dimension.cpp.
References wmtk::simplex::SimplexCollection::add(), wmtk::Edge, wmtk::simplex::SimplexCollection::mesh(), wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), wmtk::PV, wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
void wmtk::simplex::faces | ( | SimplexCollection & | simplex_collection, |
const Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 19 of file faces.cpp.
References faces_single_dimension(), wmtk::utils::primitive_below(), wmtk::utils::primitive_range(), wmtk::simplex::Simplex::primitive_type(), and wmtk::simplex::SimplexCollection::sort_and_clean().
FacesIterable wmtk::simplex::faces_iterable | ( | const Mesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 5 of file faces_iterable.cpp.
SimplexCollection wmtk::simplex::faces_single_dimension | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const PrimitiveType | face_type | ||
) |
Returns a vector with all faces in the boundary of a simplex of the given dimension.
Assuming the following tetrahedron:
0 / \\ . / \ \ . / \ \ . / \ \ . / \ 3 / \ /
/ \ / 1 ----------— 2
Given the tuple representing v(0), e(0,1), f(0,1,2), t(0,1,2,3) we have the following faces:
Tetrahedron:
PrimitiveType::Face { f(0,1,2), f(0,3,1), f(1,3,2), f(2,3,0) }
PrimitiveType::Edge { e(0,1), e(1,2), e(2,0), e(0,3), e(1,3), e(2,3) }
PrimitiveType::Vertex {v(0),v(1),v(2),v(3)}
Triangle:
PrimitiveType::Edge { e(0,1), e(1,2), e(2,0) }
PrimitiveType::Vertex {v(0),v(1),v(2)}
Edge:
PrimitiveType::Vertex {v(0),v(1)}
The order is relative to the orientation of the input tuple and guaranteed to be always the same (i.e. it is independent of the internal indices).
mesh | The mesh containing the simplex |
simplex | The simplex |
face_type | The requested face type |
Definition at line 189 of file faces_single_dimension.cpp.
Referenced by wmtk::operations::AMIPSOptimizationSmoothing::execute(), wmtk::operations::AMIPSOptimizationSmoothingPeriodic::execute(), and faces().
void wmtk::simplex::faces_single_dimension | ( | SimplexCollection & | simplex_collection, |
const Simplex & | simplex, | ||
const PrimitiveType | face_type | ||
) |
Definition at line 198 of file faces_single_dimension.cpp.
References wmtk::Edge, edges(), faces(), wmtk::simplex::SimplexCollection::mesh(), wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Mesh::top_simplex_type(), wmtk::Triangle, wmtk::Vertex, and vertices().
std::vector< Tuple > wmtk::simplex::faces_single_dimension_tuples | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const PrimitiveType | face_type | ||
) |
Definition at line 214 of file faces_single_dimension.cpp.
References wmtk::Edge, edges(), faces(), wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Mesh::top_simplex_type(), wmtk::Triangle, wmtk::Vertex, and vertices().
Referenced by wmtk::invariants::EnvelopeInvariant::after(), wmtk::invariants::MinIncidentValenceInvariant::after(), wmtk::invariants::TetMeshSubstructureTopologyPreservingInvariant::before(), wmtk::invariants::TriMeshSubstructureTopologyPreservingInvariant::before(), wmtk::invariants::ValenceImprovementInvariant::before(), wmtk::components::internal::MultiMeshFromTag::build_adjacency_matrix(), wmtk::components::internal::MultiMeshFromTag::compute_substructure_ids(), wmtk::function::utils::get_simplex_attributes(), wmtk::invariants::MinIncidentValenceInvariant::is_greater_min_valence(), neighbors_single_dimension_tuples(), wmtk::operations::composite::ProjectOperation::ProjectOperation(), wmtk::components::internal::RegularSpace::regularize_tags(), and wmtk::components::to_points().
HalfClosedStarIterable wmtk::simplex::half_closed_star_iterable | ( | const Mesh & | mesh, |
const Tuple & | tuple | ||
) |
The half closed star is used to determine the deleted simplices in an edge collapse.
The result is the same as computing the intersection of the open star of the vertex and the closed star of the edge that is represented by the tuple.
mesh | The mesh. |
tuple | The tuple representing the edge and vertex that are collapsed and deleted. |
Definition at line 5 of file half_closed_star_iterable.cpp.
Referenced by wmtk::TetMesh::TetMeshOperationExecutor::get_collapse_simplices_to_delete().
SimplexCollection wmtk::simplex::k_ring | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
int64_t | k | ||
) |
Definition at line 6 of file k_ring.cpp.
References wmtk::simplex::SimplexCollection::add(), link(), wmtk::simplex::SimplexCollection::simplex_vector(), and wmtk::simplex::SimplexCollection::sort_and_clean().
Referenced by wmtk::Scheduler::run_operation_on_all_coloring(), wmtk::components::internal::set_operation_energy_filter(), and wmtk::components::set_operation_energy_filter().
SimplexCollection wmtk::simplex::link | ( | const Mesh & | mesh, |
const simplex::Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 84 of file link.cpp.
References wmtk::Edge, link_slow(), wmtk::Tetrahedron, wmtk::Mesh::top_simplex_type(), wmtk::Triangle, and wmtk::Vertex.
Referenced by wmtk::components::internal::adjust_sizing_field(), wmtk::components::adjust_sizing_field(), wmtk::invariants::TetMeshSubstructureTopologyPreservingInvariant::before(), wmtk::invariants::TriMeshSubstructureTopologyPreservingInvariant::before(), wmtk::invariants::ValenceImprovementInvariant::before(), wmtk::operations::TetWildTangentialLaplacianSmoothing::execute(), wmtk::function::EdgeValenceEnergy::get_value(), wmtk::invariants::MinIncidentValenceInvariant::is_greater_min_valence(), k_ring(), wmtk::operations::VertexLaplacianSmooth::operator()(), wmtk::Scheduler::run_operation_on_all_coloring(), wmtk::components::internal::set_operation_energy_filter_after_sizing_field(), wmtk::components::set_operation_energy_filter_after_sizing_field(), and TEST_CASE().
SimplexCollection wmtk::simplex::link | ( | const TetMesh & | mesh, |
const simplex::Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 124 of file link.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::edge(), wmtk::simplex::Simplex::face(), wmtk::log_and_throw_error(), wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), PT, wmtk::PV, wmtk::simplex::SimplexCollection::sort_and_clean(), wmtk::MeshCRTP< Derived >::switch_tuples(), wmtk::TetMesh::switch_vertex(), wmtk::Tetrahedron, top_dimension_cofaces_tuples(), wmtk::Triangle, wmtk::Vertex, and wmtk::simplex::Simplex::vertex().
SimplexCollection wmtk::simplex::link | ( | const TriMesh & | mesh, |
const simplex::Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 98 of file link.cpp.
References wmtk::Edge, link_single_dimension(), wmtk::log_and_throw_error(), wmtk::simplex::Simplex::primitive_type(), wmtk::simplex::SimplexCollection::sort(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
Check if the edge to collapse satisfying the link condition.
Definition at line 43 of file link_condition.cpp.
References wmtk::simplex::utils::SimplexComparisons::equal(), wmtk::EdgeMesh::is_boundary_vertex(), wmtk::EdgeMesh::switch_tuple(), and wmtk::Vertex.
Referenced by link_condition(), wmtk::components::internal::periodic_optimization(), wmtk::components::wildmeshing(), wmtk::components::internal::wildmeshing2d(), and wmtk::components::internal::wildmeshing3d().
Definition at line 229 of file link_condition.cpp.
References wmtk::utils::metaprogramming::as_const_mesh_variant(), and link_condition().
The link condition on the boundary can be reduced to two cases.
Definition at line 149 of file link_condition.cpp.
References wmtk::simplex::IdSimplexCollection::add(), wmtk::simplex::IdSimplexCollection::are_simplex_collections_equal(), cofaces_single_dimension_iterable(), wmtk::Edge, wmtk::simplex::IdSimplexCollection::get_intersection(), wmtk::TetMesh::is_boundary(), wmtk::TetMesh::is_boundary_edge(), wmtk::TetMesh::is_boundary_vertex(), link_condition_closed_tetmesh(), wmtk::simplex::IdSimplexCollection::sort_and_clean(), wmtk::TetMesh::switch_tuple(), wmtk::MeshCRTP< Derived >::switch_tuples(), wmtk::Triangle, and wmtk::Vertex.
Definition at line 60 of file link_condition.cpp.
References cofaces_single_dimension_iterable(), wmtk::Edge, wmtk::simplex::utils::SimplexComparisons::equal(), wmtk::TriMesh::is_boundary(), wmtk::TriMesh::is_boundary_edge(), link_condition_closed_trimesh(), wmtk::TriMesh::switch_tuple(), and wmtk::Vertex.
Definition at line 117 of file link_condition.cpp.
References wmtk::simplex::IdSimplexCollection::add(), wmtk::simplex::IdSimplexCollection::are_simplex_collections_equal(), wmtk::simplex::Simplex::edge(), wmtk::simplex::IdSimplexCollection::get_intersection(), link_iterable(), wmtk::simplex::IdSimplexCollection::reserve(), wmtk::simplex::IdSimplexCollection::sort_and_clean(), wmtk::TetMesh::switch_vertex(), and wmtk::simplex::Simplex::vertex().
Referenced by link_condition().
Definition at line 12 of file link_condition.cpp.
References wmtk::simplex::IdSimplexCollection::add(), wmtk::simplex::IdSimplexCollection::are_simplex_collections_equal(), wmtk::simplex::Simplex::edge(), wmtk::simplex::IdSimplexCollection::get_intersection(), link_iterable(), wmtk::simplex::IdSimplexCollection::reserve(), wmtk::simplex::IdSimplexCollection::sort_and_clean(), wmtk::TriMesh::switch_tuple(), wmtk::Vertex, and wmtk::simplex::Simplex::vertex().
Referenced by link_condition().
LinkIterable wmtk::simplex::link_iterable | ( | const Mesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 5 of file link_iterable.cpp.
Referenced by link_condition_closed_tetmesh(), and link_condition_closed_trimesh().
SimplexCollection wmtk::simplex::link_single_dimension | ( | const Mesh & | mesh, |
const simplex::Simplex & | simplex, | ||
const PrimitiveType | link_type, | ||
const bool | sort_and_clean | ||
) |
Definition at line 124 of file link_single_dimension.cpp.
References wmtk::Edge, link_single_dimension_slow(), wmtk::Tetrahedron, wmtk::Mesh::top_simplex_type(), wmtk::Triangle, and wmtk::Vertex.
Referenced by link().
SimplexCollection wmtk::simplex::link_single_dimension | ( | const TetMesh & | mesh, |
const simplex::Simplex & | simplex, | ||
const PrimitiveType | link_type, | ||
const bool | sort_and_clean | ||
) |
Definition at line 183 of file link_single_dimension.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::edge(), wmtk::simplex::Simplex::face(), wmtk::log_and_throw_error(), wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), PT, wmtk::PV, wmtk::simplex::SimplexCollection::sort_and_clean(), wmtk::MeshCRTP< Derived >::switch_tuples(), wmtk::TetMesh::switch_vertex(), wmtk::Tetrahedron, top_dimension_cofaces_tuples(), wmtk::Triangle, wmtk::Vertex, and wmtk::simplex::Simplex::vertex().
SimplexCollection wmtk::simplex::link_single_dimension | ( | const TriMesh & | mesh, |
const simplex::Simplex & | simplex, | ||
const PrimitiveType | link_type, | ||
const bool | sort_and_clean | ||
) |
Definition at line 149 of file link_single_dimension.cpp.
References wmtk::Edge, wmtk::log_and_throw_error(), wmtk::simplex::Simplex::primitive_type(), wmtk::simplex::SimplexCollection::sort(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
LinkSingleDimensionIterable wmtk::simplex::link_single_dimension_iterable | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const PrimitiveType | link_type | ||
) |
Definition at line 5 of file link_single_dimension_iterable.cpp.
SimplexCollection wmtk::simplex::link_single_dimension_slow | ( | const Mesh & | mesh, |
const simplex::Simplex & | simplex, | ||
const PrimitiveType | link_type, | ||
const bool | sort_and_clean | ||
) |
Definition at line 268 of file link_single_dimension.cpp.
References wmtk::simplex::SimplexCollection::add(), closed_star(), faces(), wmtk::simplex::SimplexCollection::get_intersection(), wmtk::simplex::SimplexCollection::simplex_vector(), and wmtk::simplex::SimplexCollection::sort_and_clean().
Referenced by link_single_dimension().
SimplexCollection wmtk::simplex::link_slow | ( | const Mesh & | mesh, |
const simplex::Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 185 of file link.cpp.
References wmtk::simplex::SimplexCollection::add(), closed_star(), faces(), wmtk::simplex::SimplexCollection::get_intersection(), wmtk::simplex::SimplexCollection::simplex_vector(), and wmtk::simplex::SimplexCollection::sort_and_clean().
Referenced by link().
std::vector< Simplex > wmtk::simplex::neighbors_single_dimension | ( | const Mesh & | m, |
const Simplex & | s, | ||
const PrimitiveType | pt | ||
) |
Definition at line 9 of file neighbors_single_dimension.cpp.
References neighbors_single_dimension_tuples(), and wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector().
std::vector< Tuple > wmtk::simplex::neighbors_single_dimension_tuples | ( | const Mesh & | m, |
const Simplex & | s, | ||
const PrimitiveType | tpt | ||
) |
Definition at line 17 of file neighbors_single_dimension.cpp.
References cofaces_single_dimension_tuples(), faces_single_dimension_tuples(), wmtk::simplex::Simplex::primitive_type(), wmtk::Mesh::top_simplex_type(), and wmtk::simplex::Simplex::tuple().
Referenced by wmtk::operations::AttributeTransferStrategyBase::get_parent_simplices(), and neighbors_single_dimension().
SimplexCollection wmtk::simplex::open_star | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 12 of file open_star.cpp.
References wmtk::Edge, open_star_slow(), wmtk::Tetrahedron, wmtk::Mesh::top_simplex_type(), wmtk::Triangle, and wmtk::Vertex.
Referenced by wmtk::invariants::TetMeshSubstructureTopologyPreservingInvariant::before(), wmtk::operations::composite::TetEdgeSwap::execute(), wmtk::TetMesh::TetMeshOperationExecutor::get_split_simplices_to_delete(), wmtk::TriMesh::TriMeshOperationExecutor::get_split_simplices_to_delete(), wmtk::TetMesh::is_boundary_vertex(), and wmtk::components::TagIntersection::simplex_is_in_intersection().
SimplexCollection wmtk::simplex::open_star | ( | const TetMesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 62 of file open_star.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::edge(), wmtk::simplex::Simplex::face(), wmtk::log_and_throw_error(), wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), PT, wmtk::PV, wmtk::simplex::SimplexCollection::sort_and_clean(), wmtk::TetMesh::switch_face(), wmtk::MeshCRTP< Derived >::switch_tuples(), wmtk::Tetrahedron, wmtk::simplex::Simplex::tetrahedron(), top_dimension_cofaces_tuples(), wmtk::Triangle, and wmtk::Vertex.
SimplexCollection wmtk::simplex::open_star | ( | const TriMesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 25 of file open_star.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::edge(), wmtk::simplex::Simplex::face(), wmtk::simplex::Simplex::primitive_type(), wmtk::simplex::SimplexCollection::sort_and_clean(), wmtk::TriMesh::switch_edge(), wmtk::Tetrahedron, top_dimension_cofaces_tuples(), wmtk::Triangle, and wmtk::Vertex.
OpenStarIterable wmtk::simplex::open_star_iterable | ( | const Mesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 5 of file open_star_iterable.cpp.
SimplexCollection wmtk::simplex::open_star_slow | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 119 of file open_star.cpp.
References wmtk::simplex::SimplexCollection::add(), wmtk::simplex::SimplexCollection::contains(), faces(), wmtk::simplex::SimplexCollection::simplex_vector(), wmtk::simplex::SimplexCollection::sort_and_clean(), and top_dimension_cofaces().
Referenced by open_star().
SimplexCollection wmtk::simplex::top_dimension_cofaces | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean = true |
||
) |
Get all top dimension cofaces of the given simplex.
For example, the top dimension cofaces in a TetMesh are all tetrahedra incident to the given simplex.
The tuple held by each Simplex is guaranteed to contain the child simplex (and all other lower order simplices of the tuple) In particular, for any simplex (t, k) for tuple t, dimension k, this function returns simplices (u,m) such that \forall i \leq k, id(t,i) = id(u,i).
mesh | The mesh to which the simplex and its cofaces belong. |
simplex | The simplex of which the cofaces are computed. |
Definition at line 716 of file top_dimension_cofaces.cpp.
References wmtk::simplex::SimplexCollection::sort_and_clean(), top_dimension_cofaces_tuples(), wmtk::Mesh::top_simplex_type(), and wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector().
void wmtk::simplex::top_dimension_cofaces | ( | const Simplex & | simplex, |
SimplexCollection & | simplex_collection, | ||
const bool | sort_and_clean = true |
||
) |
Get all top dimension cofaces of the given simplex.
For example, the top dimension cofaces in a TetMesh are all tetrahedra incident to the given simplex.
The tuple held by each Simplex is guaranteed to contain the child simplex (and all other lower order simplices of the tuple) In particular, for any simplex (t, k) for tuple t, dimension k, this function returns simplices (u,m) such that \forall i \leq k, id(t,i) = id(u,i).
simplex | The simplex of which the cofaces are computed. |
simplex_collection | The top dimension cofaces are added to this SimplexCollection. |
Definition at line 428 of file top_dimension_cofaces.cpp.
References wmtk::simplex::SimplexCollection::mesh(), wmtk::simplex::SimplexCollection::sort_and_clean(), and top_dimension_cofaces_tuples().
Referenced by wmtk::invariants::CollapseEnergyBeforeInvariant::before(), wmtk::invariants::CollapseEnergyBeforeInvariantDouble::before(), wmtk::invariants::CollapseSoftEnergyBeforeInvariant::before(), wmtk::Swap44EnergyBeforeInvariant::before(), wmtk::Swap44EnergyBeforeInvariantDouble::before(), wmtk::Swap56EnergyBeforeInvariant::before(), wmtk::Swap56EnergyBeforeInvariantDouble::before(), closed_star(), wmtk::invariants::Invariant::get_top_dimension_cofaces(), wmtk::operations::utils::multi_mesh_edge_collapse_with_modified_simplices(), wmtk::operations::utils::multi_mesh_edge_split_with_modified_simplices(), open_star_slow(), and wmtk::TriMesh::TriMeshOperationExecutor::split_edge_precompute().
SimplexCollection wmtk::simplex::top_dimension_cofaces | ( | const TetMesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 700 of file top_dimension_cofaces.cpp.
References wmtk::simplex::SimplexCollection::sort_and_clean(), wmtk::Tetrahedron, top_dimension_cofaces_tuples(), and wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector().
SimplexCollection wmtk::simplex::top_dimension_cofaces | ( | const TriMesh & | mesh, |
const Simplex & | simplex, | ||
const bool | sort_and_clean | ||
) |
Definition at line 684 of file top_dimension_cofaces.cpp.
References wmtk::simplex::SimplexCollection::sort_and_clean(), top_dimension_cofaces_tuples(), wmtk::Triangle, and wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector().
TopDimensionCofacesIterable wmtk::simplex::top_dimension_cofaces_iterable | ( | const Mesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 5 of file top_dimension_cofaces_iterable.cpp.
Referenced by wmtk::TetMesh::TetMeshOperationExecutor::collapse_edge(), wmtk::TriMesh::TriMeshOperationExecutor::collapse_edge(), wmtk::TriMesh::TriMeshOperationExecutor::collapse_edge_precompute(), and wmtk::TriMesh::TriMeshOperationExecutor::get_collapse_simplices_to_delete().
std::vector< Tuple > wmtk::simplex::top_dimension_cofaces_tuples | ( | const EdgeMesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 739 of file top_dimension_cofaces.cpp.
References top_dimension_cofaces_tuples().
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const EdgeMesh & | mesh, |
const Simplex & | simplex, | ||
SimplexCollection & | collection | ||
) |
Definition at line 464 of file top_dimension_cofaces.cpp.
References wmtk::simplex::SimplexCollection::add(), wmtk::Edge, wmtk::EdgeMesh::is_boundary_vertex(), wmtk::log_and_throw_error(), wmtk::simplex::Simplex::primitive_type(), wmtk::EdgeMesh::switch_edge(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const EdgeMesh & | mesh, |
const Simplex & | simplex, | ||
std::vector< Tuple > & | collection | ||
) |
Definition at line 584 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::EdgeMesh::is_boundary_vertex(), wmtk::simplex::Simplex::primitive_type(), wmtk::EdgeMesh::switch_edge(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
std::vector< Tuple > wmtk::simplex::top_dimension_cofaces_tuples | ( | const Mesh & | mesh, |
const Simplex & | simplex | ||
) |
The same as top_dimension_cofaces but it returns only a vector of tuples.
As all simplices returned by this function are of the same type, it is often more efficient to just return the vector of tuples instead of creating a SimplexCollection.
Definition at line 760 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::Tetrahedron, top_dimension_cofaces_tuples(), wmtk::Mesh::top_simplex_type(), wmtk::Triangle, and wmtk::Vertex.
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
SimplexCollection & | collection | ||
) |
The same as top_dimension_cofaces but it appends to a vector of tuples.
As all simplices returned by this function are of the same type, it is often more efficient to just return the vector of tuples instead of creating a SimplexCollection.
Definition at line 538 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::log_and_throw_error(), wmtk::Tetrahedron, top_dimension_cofaces_tuples(), wmtk::Mesh::top_simplex_type(), wmtk::Triangle, and wmtk::Vertex.
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const Mesh & | mesh, |
const Simplex & | simplex, | ||
std::vector< Tuple > & | tuples | ||
) |
Definition at line 660 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::Tetrahedron, top_dimension_cofaces_tuples(), wmtk::Mesh::top_simplex_type(), wmtk::Triangle, and wmtk::Vertex.
std::vector< Tuple > wmtk::simplex::top_dimension_cofaces_tuples | ( | const PointMesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 731 of file top_dimension_cofaces.cpp.
References top_dimension_cofaces_tuples().
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const PointMesh & | mesh, |
const Simplex & | simplex, | ||
SimplexCollection & | collection | ||
) |
Definition at line 440 of file top_dimension_cofaces.cpp.
References wmtk::simplex::SimplexCollection::add(), wmtk::Edge, wmtk::log_and_throw_error(), wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
Referenced by wmtk::invariants::EdgeValenceInvariant::before(), wmtk::multimesh::utils::MapValidator::check_child_map_attributes_valid(), cofaces_single_dimension_tuples(), wmtk::TriMesh::TriMeshOperationExecutor::collapse_edge_precompute(), link(), link_single_dimension(), wmtk::multimesh::MultiMeshManager::map_tuple_between_meshes(), open_star(), wmtk::components::Marching::process(), wmtk::TriMesh::TriMeshOperationExecutor::split_edge_precompute(), top_dimension_cofaces(), and top_dimension_cofaces_tuples().
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const PointMesh & | mesh, |
const Simplex & | simplex, | ||
std::vector< Tuple > & | collection | ||
) |
Definition at line 561 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::log_and_throw_error(), wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
std::vector< Tuple > wmtk::simplex::top_dimension_cofaces_tuples | ( | const TetMesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 753 of file top_dimension_cofaces.cpp.
References top_dimension_cofaces_tuples().
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const TetMesh & | mesh, |
const Simplex & | simplex, | ||
SimplexCollection & | collection | ||
) |
Definition at line 512 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const TetMesh & | mesh, |
const Simplex & | simplex, | ||
std::vector< Tuple > & | collection | ||
) |
Definition at line 634 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
std::vector< Tuple > wmtk::simplex::top_dimension_cofaces_tuples | ( | const TriMesh & | mesh, |
const Simplex & | simplex | ||
) |
Definition at line 746 of file top_dimension_cofaces.cpp.
References top_dimension_cofaces_tuples().
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const TriMesh & | mesh, |
const Simplex & | simplex, | ||
SimplexCollection & | collection | ||
) |
Definition at line 489 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
void wmtk::simplex::top_dimension_cofaces_tuples | ( | const TriMesh & | mesh, |
const Simplex & | simplex, | ||
std::vector< Tuple > & | collection | ||
) |
Definition at line 611 of file top_dimension_cofaces.cpp.
References wmtk::Edge, wmtk::simplex::Simplex::primitive_type(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
std::vector< Tuple > wmtk::simplex::tuples_preserving_primitive_types | ( | const Mesh & | mesh, |
const Tuple & | t, | ||
const PrimitiveType | ptype1, | ||
const PrimitiveType | ptype2 | ||
) |
Compute all tuples that contain simplex(ptype1, t) and that are contained by simplex(ptype2, t).
If ptype1 and ptype2 are the same, only the input tuple is returned.
The return tuples are guaranteed to contain both input simplices.
Definition at line 9 of file tuples_preserving_primitive_types.cpp.
References wmtk::utils::primitive_range(), and wmtk::Mesh::switch_tuple().
Referenced by wmtk::components::internal::MultiMeshFromTag::get_connected_region().
Definition at line 9 of file faces_single_dimension.cpp.
References wmtk::Edge, wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), wmtk::PV, wmtk::Mesh::switch_tuple(), wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
Referenced by wmtk::components::AABBWrapper::AABBWrapper(), wmtk::components::internal::adjust_sizing_field(), wmtk::components::adjust_sizing_field(), wmtk::components::delaunay_exec(), wmtk::components::internal::delaunay_geogram(), wmtk::invariants::EnvelopeInvariant::EnvelopeInvariant(), wmtk::operations::AMIPSOptimizationSmoothing::execute(), wmtk::operations::AMIPSOptimizationSmoothingPeriodic::execute(), faces_single_dimension(), faces_single_dimension_tuples(), wmtk::components::longest_edge_split::longest_edge_split(), wmtk::components::internal::periodic_optimization(), wmtk::components::points_to_rowvectors(), wmtk::operations::composite::ProjectOperation::ProjectOperation(), wmtk::simplex::RawSimplex::RawSimplex(), wmtk::components::isotropic_remeshing::relative_to_absolute_length(), wmtk::components::internal::set_operation_energy_filter(), wmtk::components::set_operation_energy_filter(), wmtk::components::internal::set_operation_energy_filter_after_sizing_field(), wmtk::components::set_operation_energy_filter_after_sizing_field(), wmtk::components::shortest_edge_collapse::shortest_edge_collapse(), TEST_CASE(), wmtk::components::tetwild_simplification(), wmtk::components::to_points(), wmtk::components::wildmeshing(), wmtk::components::internal::wildmeshing2d(), and wmtk::components::internal::wildmeshing3d().
void wmtk::simplex::vertices | ( | SimplexCollection & | simplex_collection, |
const Simplex & | simplex | ||
) |
Definition at line 38 of file faces_single_dimension.cpp.
References wmtk::simplex::SimplexCollection::add(), wmtk::Edge, wmtk::simplex::SimplexCollection::mesh(), wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), wmtk::PV, wmtk::Mesh::switch_tuple(), wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.