summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/three_surface.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-20 17:59:31 +0000
committerKarl Berry <karl@freefriends.org>2015-05-20 17:59:31 +0000
commit072cb7160a0ae45a78b0d521af8a1533bb78603f (patch)
treea1e3dfba0cd2083c9ae8a70ed1d7da1f52e09741 /Master/texmf-dist/asymptote/three_surface.asy
parentaeecf951b2d292ab5afce830bc1b85bf7ea22e0b (diff)
asymptote 2.35
git-svn-id: svn://tug.org/texlive/trunk@37459 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/three_surface.asy')
-rw-r--r--Master/texmf-dist/asymptote/three_surface.asy3
1 files changed, 3 insertions, 0 deletions
diff --git a/Master/texmf-dist/asymptote/three_surface.asy b/Master/texmf-dist/asymptote/three_surface.asy
index faf56b546f4..f2f21eb826c 100644
--- a/Master/texmf-dist/asymptote/three_surface.asy
+++ b/Master/texmf-dist/asymptote/three_surface.asy
@@ -1961,6 +1961,9 @@ surface unitcone(int n=6)
restricted surface unitcone=unitcone();
restricted surface unitsolidcone=surface(patch(unitcircle3)...unitcone.s);
+// Construct an approximate cone over an arbitrary base.
+surface cone(path3 base, triple vertex) {return extrude(base,vertex--cycle);}
+
private patch unitcylinder1=patch(X{Y}..{-X}Y--Y+Z{X}..{-Y}X+Z--cycle);
restricted surface unitcylinder=surface(unitcylinder1,t1*unitcylinder1,