summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/vectorfieldsphere.asy
blob: 7f1e49057a5c914da25127103450ec98f6a78428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import graph3;

size(12cm);

currentprojection=orthographic(1,-2,1);
currentlight=(1,-1,0.5);

triple f(pair z) {return expi(z.x,z.y);}

path3 vector(pair z) {
  triple v=f(z);
  return O--(v.y,v.z,v.x);
}

add(vectorfield(vector,f,(0,0),(pi,2pi),10,0.25,red,render(merge=true)));

draw(unitsphere,gray+opacity(0.5),render(compression=0,merge=true));