5
$\begingroup$

I find out, unintentionally, that in version 5.0 of the Mathematica software there was a dialog called ViewPoint Selector.

enter image description here

Is there anything similar in this regard that presents a dialog box for this?

I wish the outputs can be used in some way in the Graphics3D function through the context menu.

$\endgroup$
  • $\begingroup$ I have seen in some answers that it is possible using a line of code, but without any graphic visualization. I thought of something like what's in the picture. But I did not want to use Manipulate because my desktop hangs when I use this function. $\endgroup$ – LCarvalho Jul 13 '17 at 14:01
  • 1
    $\begingroup$ Just a note, it comes from times where 3d graphics were not interactive. Now you can rotate/zoom/pan graphics 3d. Is there any specific use case for this? $\endgroup$ – Kuba Jul 24 '17 at 10:48
  • $\begingroup$ To enter the desired values in ViewPoint. Ex: ViewPoint -> {0, -2, 0} $\endgroup$ – LCarvalho Jul 24 '17 at 11:11
  • $\begingroup$ You can pass ViewPoint as an option to your Graphics3D. Alternatively you can use a Dynamic value for it. $\endgroup$ – b3m2a1 Aug 2 '17 at 3:11
  • $\begingroup$ Two related questions. $\endgroup$ – J. M.'s discontentment Aug 2 '17 at 3:54
3
$\begingroup$

Here's an example illustrating a Dynamic version of ViewPoint with sliders, etc.

Grid[
  {
   {
    Panel[
     Graphics3D[
      First@PolyhedronData["Spikey"],
      Axes -> True,
      AxesOrigin -> {0, 0, 0},
      ViewPoint ->
       Dynamic[
        Replace[{x, y, z},
         Except[{__?NumericQ}] -> {1.3`, -2.4`, 2.`}
         ],
        {x, y, z} = #; &
        ],
      SphericalRegion -> True
      ],
     Background -> White
     ],
    VerticalSlider[Dynamic[z], {-5, 5}]
    },
   {Slider2D[Dynamic[{x, y}], {-5, 5}], SpanFromLeft}
   }
  ] // Panel

dynamic view point

There's a Slider2D for {x,y} and a VerticalSlider for z.

Plus you can interact the the graphic in the standard way.

Really this is just an impoverished form of this

| improve this answer | |
$\endgroup$
  • $\begingroup$ The one more thing needed is the output of the {x,y,z} to make the final image for Export or for future usage. $\endgroup$ – Rom38 Aug 2 '17 at 7:23
  • $\begingroup$ @Rom38 that's easy enough to get, since they're global variables. Or do you just want a monitor? Both are quite easy. $\endgroup$ – b3m2a1 Aug 2 '17 at 7:27
  • $\begingroup$ yes, it is easy but it is good to do to complete the answer about ViewPoint selector. Because you solution does not select anything than view :) which is available in MMA by default. $\endgroup$ – Rom38 Aug 2 '17 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.