summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/cheese.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/examples/cheese.asy')
-rw-r--r--Build/source/utils/asymptote/examples/cheese.asy12
1 files changed, 12 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/cheese.asy b/Build/source/utils/asymptote/examples/cheese.asy
new file mode 100644
index 00000000000..f283f5c8115
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/cheese.asy
@@ -0,0 +1,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);