summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/galleon.asy
blob: 1221fd5c8624eac64f24dd9f19655b4cdf66e6ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import obj;

size(15cm);
currentprojection=orthographic(0,2,5,up=Y);

// A compressed version of the required data file may be obtained from:
// http://www.cs.technion.ac.il/~irit/data/Viewpoint/galleon.obj.gz

pen[] surfacepen={darkred,brown,darkred+orange,heavyred,heavyred,darkred+orange,
                  palegreen+blue+lightgrey,darkred,darkred,yellow,darkred,white,
                  white,white,white,white,white};
surfacepen.cyclic=true;

draw(obj("galleon.obj",verbose=false,surfacepen));