In quickhall algo, you need to build a cone over many edges.
An edge is considered a spike with one vertex removed. It is required that adding a vertex to the edge forms a simplex, as if this vertex was simply replaced.
For example, when saving simplexes in the form of vrtices lists for a triangle defined with vertices {p0, p1, p2}, there are: {p1, p2}, {p2, p0}, {p0, p1} - in this index the order. Now, adding a new vertex p to the end of the list of vertices, new triangles: {p1, p2, p}, {p2, p0, p}, {p0, p1, p} They have the same orientation as the original triangle was oblique.
For a triangle, the edge opposite p1 has the reverse order of the remaining vertices. For a tetrahedron, this is for p0 and p2.
What is the right way to store edges, or the right way to find out when you need to reverse the order of the vertices?
Good. In general, storing a set of vertices is simply not enough to represent a simplex if its orientation matters. The same set can be equivalent simplexes with a different volume sign. The list can keep orientation, but it is not trivial to deduce it from the order. Thus, neither sets nor lists are a good solution (for representing both the simplex and its edges).