summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/cones.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/examples/cones.asy')
-rw-r--r--Build/source/utils/asymptote/examples/cones.asy16
1 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/cones.asy b/Build/source/utils/asymptote/examples/cones.asy
new file mode 100644
index 00000000000..4f28796cb92
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/cones.asy
@@ -0,0 +1,16 @@
+import solids;
+
+size(200);
+currentprojection=orthographic(5,4,2);
+
+revolution upcone=cone(-Z,1,1);
+revolution downcone=cone(Z,1,-1);
+draw(surface(upcone),green);
+draw(surface(downcone),green);
+draw(upcone,5,blue,longitudinalpen=nullpen);
+draw(downcone,5,blue,longitudinalpen=nullpen);
+
+revolution cone=shift(2Y-2X)*cone(1,1);
+
+draw(surface(cone),green);
+draw(cone,5,blue);