A mesh-independent flow direction model for flow routing