A Visual Demo of Discrete Stratified Morse Theory


Your input file need to be a TXT file of the following format.

1. The second line specifies the number of vertices, faces and edges.
2. Starting from the third line, each line specifies the position and function value of a simplex, in order of vertices, faces and edges.
3. For vertices, the position is represented as x and y coordinates. For faces and edges, the position is represented as the index of the vertices on its boundary.

Violator Simplices

Non-violator Critical Simplices

Non-critical Simplices
Stratification