Original Post
Running into a bit of a problem here, hoping someone can give me a lead. I'm making a 3D level editor and I need to produce some smooth closed contour lines passing through the centres of the tiles that are on edges of distinct land masses.
I've done some preliminary work such as actually marking each hex with a unique land mass index and have removed internal hexes such that each mass now only has the tiles that are actually around the edges. If you look at my diagram, it's obviously the white line I need to produce (I will widen it and smooth it later) but nothing springs to mind for a rock solid way to actually get that line and only that line, without any wrong turns being made. I'd love to hear suggestions for an algorithm here. I tried googling but found nothing directly suitable. Many thanks in advance....
