"Fossies" - the Fresh Open Source Software Archive

Member "asymptote-2.61/examples/threeviews.asy" (18 Nov 2019, 576 Bytes) of package /linux/misc/asymptote-2.61.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 
    3 picture pic;
    4 unitsize(pic,5cm);
    5 
    6 if(settings.render < 0) settings.render=4;
    7 settings.toolbar=false;
    8 viewportmargin=(1cm,1cm);
    9 
   10 draw(pic,scale3(0.5)*unitsphere,green,render(compression=Low,merge=true));
   11 
   12 draw(pic,Label("$x$",1),O--X);
   13 draw(pic,Label("$y$",1),O--Y);
   14 draw(pic,Label("$z$",1),O--Z);
   15 
   16 // Europe and Asia:
   17 //addViews(pic,ThreeViewsFR);
   18 //addViews(pic,SixViewsFR);
   19 
   20 // United Kingdom, United States, Canada, and Australia:
   21 addViews(pic,ThreeViewsUS);
   22 //addViews(pic,SixViewsUS);
   23 
   24 // Front, Top, Right,
   25 // Back, Bottom, Left:
   26 //addViews(pic,SixViews);