summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/roll.asy
blob: 52b34b0ca261431d8d51cc58028b4e9543b9a4f0 (plain)
1
2
3
4
5
6
7
8
9
10
import graph3;

size(200,0);

triple f(pair t) {
  return(t.x+t.y/4+sin(t.y),cos(t.y),sin(t.y));
}

surface s=surface(f,(0,0),(2pi,2pi),7,20,Spline);
draw(s,olive,render(merge=true));