summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/cones.asy
blob: 4f28796cb92bcab0b0f35a726f4d17fb5ab7eacd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);