Separation Anxiety
The last GIF got me thinking more about cross sections of the torus, so here's a loop showing several. Of course, this makes me wonder about other interesting visualizations of Morse theory, so maybe that will be my next GIF.
I got frustrated trying to implement this using Graphics3D
and Line
, so I got lazy and just used ParametricPlot3D
. The problem is that my level set function actually splits the level sets into two parts (corresponding to the two connected components when the level set becomes disconnected), and the two sides don't match up when the level sets are connected unless I use a ridiculous number of points.
To make the GIF I used PlotPoints -> 5000
, which is slightly insane and certainly far too many to get a responsive Manipulate
. The below code uses PlotPoints -> 200
, which looks kind of crappy, but was good enough to play around with viewpoints and colors and so forth. Anyway, if you want to make your own GIF (and don't want to come up with better code), crank up PlotPoints
and be prepared to wait a while.