I have quite standard cases of 2D outlines resulting in forks and beams, but during the pruning process I most often have some little branches left. So it is not clear how many pruning steps are needed or whether the result would be good. More simply, it is difficult to have an error-less process when i.e. a beam would result in 1 central curve, or fork - 3 central curves. Smoothing of polylines does not help much either.
For now I was doing mesh triangulation from closed polyline, and extracting skeleton based on mesh face adjacency.
I attached the set of 2D curves I have in Rhino file.
I also tried Capybara plugin on 3D closed meshes, but the CGAL wrapper does not work on some computers, so I would like to stay with 2D cases.
Curves.3dm (153.7 KB)