Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.6K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Avoid ParametricPlot3D producing curves that are "under-sampled"?

Posted 9 years ago

I was trying to display an animation of two amortized sinusoids that cross each other, like in the example below:

EB[x_, t_] := Cos[2*Pi*x - t]/(1 + 0.125*x^2)
Animate[ParametricPlot3D[{{u, 0, EB[u, t]}, {5, 5 - u, EB[u, t]}}, {u,
    0, 10}, PlotRange -> {{0, 10}, {-5, 5}, {-1, 1}}, 
  ImageSize -> Scaled[0.8], AxesOrigin -> {0, 0, 0}, 
  Boxed -> False], {t, 0, 2*Pi}]

As you can see, the first curve displays as expected, but the second (orange) one is ugly. How can I sort this out ?

Many thanks for your time.

Yohann

POSTED BY: Yohann Bénédic
4 Replies

Ok, thank you for your insights.

POSTED BY: Yohann Bénédic

When making an animation we must make a compromise between the smoothness in space of every single frame and the smoothness through time. The internal algorithm chooses what to sacrificed, and it is not always the best for human judgement. With PerformanceGoal -> "Quality" we force Mathematica to give precedence to space accuracy.

POSTED BY: Gianluca Gorni

You can try giving the option PerformanceGoal -> "Quality", or PlotPoints->50 or more.

POSTED BY: Gianluca Gorni
POSTED BY: Yohann Bénédic
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard