fix: non-2-manifold edges would cause a crash