Improve and optimize navigation mesh generation.