“Bending a pipe”

Consider this (quick & dirty example). I lofted several segments by using the move tool to duplicate and resize a rounded edges rectangles. Then I mirrored that. :