Say I'd like to visualise a height function of a torus by animating a plane going upwards, and highlighting the intersection via Mesh
/MeshFunctions
. I draw the torus using ParametricPlot3D
, and I would like it to be very smooth and nice looking, so I put somewhat high values of PlotPoints
and/or MaxRecursion
. I produce an animation using Table
with the parameter being the value in Mesh
.
Now the problem is, that each frame of my animation recomputes the torus, which takes a lot of time. Is there a way to only compute the torus once, and then just compute different meshes for each frame? Maybe I could compute all the meshes while computing the plot, and then just display one at the time? Can I extract meshes as, say, GraphicsComplex
and combine it back with the plot in Show
?