As part of something I'm coding for work, I need to find the distribution of distance from a point to a polygonal object (described by a set of coordinates $(x_1,y_1)...(x_n,y_n)$). In other words, a function/algorithm/process for "How much of the object is at a given distance?"
After a bit of scribbling, I haven't been able to find a satisfactory solution, and if this is a known technique elsewhere, it is named something that I have not thought to search for.

Let $f(x,y)$ be the mass distribution of the object (the density of the object at point $x,y$).
Change the coordinates to polar coordinates: $$g(\rho,\theta) = \rho f(\rho \cos\theta, \rho \sin\theta).$$
Then the function $g(\rho,\theta)$ tells you the amount of mass of the object at distance $\rho$ and angle $\theta$.
Finally, integrate over $\theta$ to find the density of rhe object ar distance $\rho$: $$m(\rho) =\int_0^{2\pi} g(\rho,\theta) \mathrm d \theta.$$
If the density if uniform, then you are effectively looking for the lengths of the arcs of circles of different radii that fall inside the polygon.
One algorithm to do this easily would be
Here is the result of running the algorithm
and here is the code to generate the picture