Wildmeshing Toolkit
InteriorSimplexInvariant.cpp
Go to the documentation of this file.
2 #include <wmtk/Mesh.hpp>
4 
5 namespace wmtk::invariants {
7  : Invariant(m, true, false, false)
8  , m_primitive_type(pt)
9  , m_boundary_checker(m)
10 {}
11 
13 {
14  const bool result = !m_boundary_checker.is_boundary(
15  mesh(),
17  return result;
18 }
19 
20 
21 void InteriorSimplexInvariant::add_boundary(const Mesh& boundary_mesh)
22 {
23  m_boundary_checker.add_mesh(boundary_mesh);
24 }
25 } // namespace wmtk::invariants
InteriorSimplexInvariant(const Mesh &m, PrimitiveType pt)
bool before(const simplex::Simplex &t) const override
const Mesh & mesh() const
Definition: Invariant.cpp:35
bool is_boundary(const Mesh &m, const wmtk::simplex::Simplex &simplex) const
const Tuple & tuple() const
Definition: Simplex.hpp:53