The internal sensors (gyroscope, accelerometer, compass) will struggle with this task because they don't have a fixed reference point in the physical world. There is a question/answer about problems calculating relative position from accelerometers here and here.
Augmented reality applications often solve the problem using the camera to locate a reference point (e.g. a QR code placed on a table or other object tracking) and calculate changes in size / orientation of the reference point to redraw the augmented object.
There is a basic starting point for looking at algorithms and approaches here.