Implemented NavMesh.Generate.