Message Boards Message Boards

0
|
3178 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How can I get this ParametricPlot3D to use a 2D Slider to control it?

Attachments:
POSTED BY: Michael Harcrow
3 Replies

You might also consider using IntervalSlider.

http://reference.wolfram.com/language/ref/IntervalSlider.html

POSTED BY: Sean Clarke

I would do it with DynamicModule:

DynamicModule[{p = {-1, -1}, q = {2, 2}},
 Row[{LocatorPane[Dynamic[{p, q}],
    Graphics[{Gray, Dynamic@Rectangle[p, q]},
     PlotRange -> {{-2, 5}, {-2, 5}}, Frame -> True]],
   Dynamic@
    With[{xmin = p[[1]], xmax = q[[1]], ymin = p[[2]], 
      ymax = q[[2]]},
     ParametricPlot3D[f[u, v], {u, xmin, xmax}, {v, ymin, ymax}]]}]]
POSTED BY: Gianluca Gorni

This does work pretty well. However I would like to move it to just have one moving piece in the locator instead of two. Either way this will do. Thank you for your help!

POSTED BY: Michael Harcrow
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract