I would like to have an animation of rotating box and displayed it with other elements (not rotated) using Show. The first step to do that is to have all the elements working properly. So I did the following:
Created a box:
myBox = Cuboid[{-40, 40, 0}, {40, 60, 10}];
and make a Graphics3D out of it:
Graphics3D[myBox]
Rotated it:
Rotate[Graphics3D[myBox], Pi/2, {0, 0}]
Used Show:
Show[Rotate[Graphics3D[myBox], Pi/2, {0, 0}]]
And the strange things started to happen.
I've got "Show::gtype: Rotate is not a type of graphics.". So I googled and found the following: link1, link2, link3
I tried most of the suggestions from those threads and the only one that helped was halirutan's from the first one:
Show[Graphics@First@Rotate[Graphics3D[myBox], Pi/2, {0, 0}]]
There was no error, but also no rotation, so the problem was still not solved.
Then I tried:
First@Show[Graphics@Rotate[Graphics3D[myBox], Pi/2, {0, 0}]]
The image was rotated, but it wasn't Graphics, so I couldn't use Show on it.
I suppose that answer is somewhere in the threads I quoted, but either I missed it or I can't use it.
Rotate
, e.g.,Show[Graphics3D[Rotate[myBox, Pi/2, {0, 0, 1}]]]
$\endgroup$ – Karsten 7. Mar 17 '15 at 21:49Show
? $\endgroup$ – Szabolcs Mar 17 '15 at 21:49