A new algorithm for finding a visual center of a polygon
mapbox.com
mapbox.com
http://www.comp.nus.edu.sg/~tants/jfa/i3d06-submitted.pdf
JFA could certainly be "abused" for this purpose.
Yes, Voronoi and Delaunay are duals of eachother, so you can flip between them. Edges of one turn to vertices of the other and vice versa.
Are you sure about it? I struggle to find a case where the quadtree version of their algorithm would not converge.
Would the delaunay-based algorithm be faster in the worst case?
In fact, that was the whole reason we started discussing it, since I initially proposed just doing what you suggested
EDIT: Oh, wait:
> Basic alpha shapes are based on the Delaunay triangulation.
At that point we might as well go for DT based approaches, don't we?
https://en.wikipedia.org/wiki/Straight_skeleton
There's no explicitly spiraling/lawnmower aspect to the straight skeleton: you may have a raster-based incremental literally spiralling solution in mind, but for the geometric examples they show this would probably be inefficient. It's going to have to traverse a large multiple of the perimeter of the polygon as it spirals.
If I had to design an algorithm to do this, my idea would be to sample a bunch of points on the polygon, then take their median x and y values. Then find the closest spot on the polygon to that value, if it's not inside the polygon.
But we're looking for the "visual center," defined in the article as "a point inside a polygon with as much space as possible around it."
This shows the shrinking approach (and was a fun excuse to play around with octave-image): http://imgur.com/a/cM8TU
Imagine a long rectangle.
The pole of inaccessibility will be a range along most of the length of the rectangle... it won't find the center at all!
Even the illustrated "coastline" example is horizontally centered only by chance, because that happens to be the thickest part.
So not clear at all this finds a plausible "visual center" by any means.
How could it be a range like that? Surely some points on the range would be closer to the short edges than others, making them more accessible?