add function to display cube with applied transformation matrix