Question: How to plot S-shape line

Hello to everyone

Pls help,urgent....

I need to draw the deformation of one story building (for simplicity, 4 columns and 2 floors) whose columns and floors  under influence of external load acting to the left of the building at its intersection point undergo the deform shape like S . So means that when the building moves to the right its intersection point of column and floor has some small rotation.

I am new to Maple environment and not really certain how to make that. I know that the frame of the building can be drawn by polygon function, but have no idea how to insert that small rotational angle and then deform the line connecting polygon end points in S-kind of form. May be there is another command to rotate the end of the line and make it look like S.

Certainly, the exact mathematical expression of deform shape of column and floor can be found by various structural analysis, but it would be very cumbersome especially when the number of floors and columns increases which is not what I wanna do. I just need to show a quick demo of how the structure elements will move in kind of S-form. 

The following picture demonstrate the concept I wanna perform on a Maple if possible.

The deform structure depicted below has its columns and floors being deformed in way whose nature of deformation is dependent on the angle of rotation between column and floor. So if there is a small deform angle at both ends of column or floor then this element will deform more or less like S-shape. (for simplicity only) So, over the last few days I was trying to generate this movement but didn't succeed, thus, does anyone know how to make it.
  
Thank you in advance

 

Please Wait...