summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/hyperboloid.asy
blob: 10d3609f5d09cdcac6a3203f5ef52b8a9c6d27c6 (plain)
1
2
3
4
5
6
7
8
size(200);
import solids;

currentprojection=perspective(4,4,3);
revolution hyperboloid=revolution(new real(real x) {return sqrt(1+x*x);},
                                  -2,2,20,operator..,X);
draw(surface(hyperboloid),green);
draw(hyperboloid,6,blue,longitudinalpen=nullpen);