I'd like to create a widget that allows you to specify one of two ViewPoint
s.
Manipulate[
Graphics3D[
{
Cuboid[]
},
ViewPoint -> Which[a == 1, {0, 0, -2}, a == 2, {-2, 2, 2}]
],
{a, {1, 2}}
]
After executing, you can pick between a==1
or a==2
, which will indeed change the point of view. But if you rotate the image with the mouse, this no longer works.
I'd like to allow rotation by the user (which should deselect buttons 1
and 2
under a
), but also be able to snap back to one of the two presets if the user then presses one of the a
buttons again.