Is there a way to make a custom navmesh? Like drawing it by yourself?

I’v found something like that for unity for example:
http://forum.unity3d.com/threads/navmesh-extension-navmesh-drawing-portals.240022/

I need it to be generated at run-time by code.