"Fossies" - the Fresh Open Source Software Archive

Member "asymptote-2.60/examples/RiemannSurface.asy" (6 Nov 2019, 369 Bytes) of package /linux/misc/asymptote-2.60.src.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 import graph3;
    2 import palette;
    3        
    4 size(200,300,keepAspect=false);
    5 //settings.nothin=true;
    6        
    7 currentprojection=orthographic(10,10,30);
    8 currentlight=(10,10,5);
    9 triple f(pair t) {return (exp(t.x)*cos(t.y),exp(t.x)*sin(t.y),t.y);}
   10        
   11 surface s=surface(f,(-4,-2pi),(0,4pi),8,16,Spline);
   12 s.colors(palette(s.map(zpart),Rainbow()));
   13 draw(s,render(merge=true));