`critical_cut_length` can become < 0 for station with a slope angle > 0 or for virtual slopes
according to a discussion with @richter the current critical_cut_length
inplementation does not really work on slopes, so it might make sense to either not calculate on slopes or calculated for slope = 0 (would be the preferred option for us)
Edited by Ruesch