bending objects

 From:  noskule
3875.7 
Here is a bit more complex version. The red curve should bend around the blue object.