https://123dok.net/document/y96j8vwy-homological-reconstruction-and-simplification-in-r3.html