blob: 457ae69fb8301b8e263e4fa49af2a19b90fc22d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import three;
size(10cm);
path3[] p=reverse(unitcircle3)^^scale3(0.5)*unitcircle3;
path[] g=reverse(unitcircle)^^scale(0.5)*unitcircle;
triple H=-0.4Z;
render render=render(merge=true);
draw(surface(p,planar=true),render);
draw(surface(shift(H)*p,planar=true),render);
material m=material(lightgray,shininess=1.0);
for(path pp : g)
draw(extrude(pp,H),m);
|