First, the model TIN is created based on the surveying data. The height difference is the difference in height between the head water (lake) and tail water (stream) from which, together with the given gradient, a minimum route length results.