blob: 07c59f35d8dd632ca8ffb737b75cc530ee821b02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
size(0,100);
import solids;
currentlight=Viewport;
triple v=O;
real r=1;
real h=1.5;
triple axis=Y+Z;
// Optimized cylinder
surface cylinder=shift(v)*align(unit(axis))*scale(r,r,h)*unitcylinder;
draw(cylinder,green,render(merge=true));
// Skeleton
revolution r=cylinder(v,r,h,axis);
//draw(surface(r),green,render(merge=true));
draw(r,blue+0.15mm);
|