[Olena-patches] last-svn-commit-246-gf714e94 Simplify curvature-based thinnings using 2- and 1-collapses apps.