summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/trumpet.asy
blob: 842af2b23c2fbdc28e239a9f313f902f15221e0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import graph3;
size(200,0);

currentlight=Viewport;

triple f(pair t) {
  real u=log(abs(tan(t.y/2)));
  return (10*sin(t.y),cos(t.x)*(cos(t.y)+u),sin(t.x)*(cos(t.y)+u));
}

surface s=surface(f,(0,pi/2),(2pi,pi-0.1),7,15,Spline);
draw(s,olive+0.25*white,render(compression=Low,merge=true));