26 #ifndef EDELSBRUNNER96_INDUCED_SUBCOMPLEX_H_
27 #define EDELSBRUNNER96_INDUCED_SUBCOMPLEX_H_
32 namespace edelsbrunner96 {
73 template <
typename Traits>
76 typedef typename Traits::Scalar
Scalar;
90 v_missing(v_missing) {
95 std::array<PointRef, Traits::NDim + 2>
V;
99 std::array<SimplexRef, Traits::NDim + 2>
S;
102 std::array<PointRef, Traits::NDim>
f;
106 std::array<PointRef, 2>
e;
109 std::array<SimplexRef, 2>
s;
117 void Init(
Storage& storage,
const std::array<SimplexRef, 2>&
s);
144 #endif // EDELSBRUNNER96_INDUCED_SUBCOMPLEX_H_
std::array< SimplexRef, 2 > s
the two simplices bounding the facet
bool IsFlippable(Storage &storage)
Return true if the facet is flippable.
uint8_t FindIndexOfPeakVertex(Simplex &s)
Given a simplex s which borders the hull of V (i.e. s shares a facet with hull(V)), then find the vertex of s which is not in V, and return it's index in S.V;.
BreadthFirstNode(SimplexRef s_ref, PointRef v_missing)
The induced subcomplex of a facet between two simplices is the set of all simplices in the triangulat...
std::array< PointRef, Traits::NDim > f
the vertices of facet for which this subcomplex is induced.
Traits::SimplexRef SimplexRef
std::array< SimplexRef, Traits::NDim+2 > S
if S[i] is not null then it is the simplex in the triangulation composed of all the vertices in V exc...
bool IsLocallyRegular(Storage &storage)
Return true if the facet is locally regular.
void Build(Storage &storage)
Fill the induced simplex by breadth-first search of the neighborhood about s[0] and s[1]...
std::array< PointRef, Traits::NDim+2 > V
the (sorted) vertices of the subcomplex
std::array< PointRef, 2 > e
the two vertices in V which are not part of the facet. e[i] is the vertex missing from s[i] ...
void Init(Storage &storage, SimplexRef s0_ref, SimplexRef s1_ref)
Initialize the data structure with the two simplices and build the vertex set for the common facet...
Traits::PointRef PointRef
We do a breadthfirst search for simplices in the induced subcomplex. This data structure is what we q...
void Flip(Storage &storage)
Flip the subcomplex.