summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/hyperboloid.asy
blob: 0cf6da08c409a465a57fbc18f4d2df6694264186 (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,render(compression=Low,merge=true));
draw(hyperboloid,6,blue,longitudinalpen=nullpen);