calculatehmid.f

The desired edge length in the middle nodes (needed for the weighted smoothing) is obtained by interpolation between the end nodes.