summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/generalaxis3.asy
blob: 68a01c8ce28c941e2969e967c6bc707fb3f4779f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import graph3;

size(0,100);

path3 g=yscale3(2)*unitcircle3;
currentprojection=perspective(10,10,10);

axis(Label("C",position=0,align=15X),g,InTicks(endlabel=false,8,end=false),
     ticklocate(0,360,new real(real v) {
         path3 h=O--max(abs(max(g)),abs(min(g)))*dir(90,v);
         return intersect(g,h)[0];},
       new triple(real t) {return cross(dir(g,t),Z);}));