"Fossies" - the Fresh Open Source Software Archive

Member "asymptote-2.60/examples/BezierTriangle.asy" (6 Nov 2019, 199 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 three;
    2 currentprojection=perspective(-2,5,1);
    3 
    4 size(10cm);
    5 
    6 surface s=surface((0,0,0)--(3,0,0)--(1.5,3*sqrt(3)/2,0)--cycle,
    7                   new triple[] {(1.5,sqrt(3)/2,2)});
    8 
    9 draw(s,red);
   10