summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/cheese.asy
blob: f283f5c81151720b3b53cf223ae95a8c92df2a8b (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);