summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/cheese.asy
blob: 9a16e4130dc3e94579fb24409b67d8b2ce2582b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import graph3;
import palette;
import contour3;
size(400);

real f(real x, real y, real z) {
  return cos(x)*sin(y)+cos(y)*sin(z)+cos(z)*sin(x);
}

surface sf=surface(contour3(f,(-2pi,-2pi,-2pi),(2pi,2pi,2pi),12));
sf.colors(palette(sf.map(abs),Gradient(red,yellow)));
draw(sf,nolight,render(merge=true));