I'm working on my own implementation of Lazy Theta* for navigation. To that end, I need a grid representation of the map I'm working on. Since I'm generating that through Perlin noise, it's not hard to extract a black and white reference map of pathable surfaces and trace their edges:
![Traced image][1]
I've been spending the last few days wrangling with scientific papers on nav mesh generation, Poly2Tri and the source code of Recast and Detour but I can't for the life of me wrap my head around how to implement that with the interrupted edge vertices I found on my NavMap. Poly2Tri was very promising until I realized it can only generate a single polygon from a set of points. Ideally, I want to generate something like this:
![Ideal quads][2]
Any ideas on how to approach the problem? Thank you for any help!
[1]: http://i.imgur.com/AZDFZk7.png
[2]: http://i.imgur.com/2SuPSDH.png
↧