Piecewise beam