I was tasked with figuring out how to find the centerline of the polygon. My searches made me believe that what I needed was called the Medial Axis. Like this:
alt text http://www.ndl.kiev.ua/downloads/center_line.png
According to what I read, what I need can be obtained using the algorithm for constructing a 2D 2D diagram for segments.
I found the C # version for Voronoi algorithm on codeplex (FortuneVoronoi), and after applying my polygon to it, I get the following:
alt text http://www.carbonatlas.com/geonotes/gaia_voronoi.png
Green is the original polygon. Orange is the top of Voronoi, and black is the edge of the raven.
I can see the tasks that I need at these peaks, but I'm not sure about the next step, which requires filtering everything that I do not need.
I would appreciate any help you can offer.
c # geometry computational-geometry medial-axis
mdm20
source share