Unofficial package polyhedron_js.asy – fig0010

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 23 h 46 min

Figure 0001
(Compiled with Asymptote version 2.14svn-r5318)
    
import polyhedron_js;

// comment the following line for OpenGl
// settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

polyhedron pyramid;
real sq2=sqrt(2)/2;
pyramid[0]=(-sq2,-sq2,0)--(-sq2,sq2,0)--(sq2,sq2,0)--(sq2,-sq2,0)--cycle;
pyramid[1]=(sq2,-sq2,0)--(sq2,sq2,0)--(0,0,1)--cycle;
pyramid[2]=(sq2,sq2,0)--(-sq2,sq2,0)--(0,0,1)--cycle;
pyramid[3]=(-sq2,sq2,0)--(-sq2,-sq2,0)--(0,0,1)--cycle;
pyramid[4]=(-sq2,-sq2,0)--(sq2,-sq2,0)--(0,0,1)--cycle;
size(10cm);
polyhedron[] parr={pyramid};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D())
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue))); 

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0020

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 0 h 46 min

Figure 0002
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

size(10cm);

// currentprojection=perspective(7,6,4); //if you want perspectivic look
currentprojection=orthographic(1,0.5,0.5); //if you want othographic look
currentlight=(1,1,2);
// currentlight=nolight;

polyhedron[] parr={cube};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D()) {
  label("Cube",point(S),align=3S);
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0030

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 1 h 46 min

Figure 0003
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

size(10cm);

// currentprojection=perspective(7,6,4); //if you want perspectivic look
currentprojection=orthographic(1,0.5,0.5); //if you want othographic look
currentlight=(1,1,2);
// currentlight=nolight;

polyhedron[] parr={tetrahedron};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D()) {
  label("Tetrahedron",point(S),align=3S);
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0040

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 2 h 46 min

Figure 0004
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

size(10cm);

// currentprojection=perspective(7,6,4); //if you want perspectivic look
currentprojection=orthographic(1,0.5,1); //if you want othographic look
currentlight=(1,1,2);
// currentlight=nolight;

polyhedron[] parr={dodecahedron};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D()) {
  label("Dodecahedron",point(S),align=3S);
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0050

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 3 h 46 min

Figure 0005
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

size(10cm);

// currentprojection=perspective(7,6,4); //if you want perspectivic look
currentprojection=orthographic(1,0.5,1); //if you want othographic look
currentlight=(1,1,2);
// currentlight=nolight;

polyhedron[] parr={icosahedron};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D()) {
  label("Icosahedron",point(S),align=3S);
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0060

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 4 h 46 min

Figure 0006
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

size(10cm);

// currentprojection=perspective(7,6,4); //if you want perspectivic look
currentprojection=orthographic(1,0.5,1); //if you want othographic look
currentlight=(1,1,2);
// currentlight=nolight;

polyhedron[] parr={octahedron};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D()) {
  label("Octahedron",point(S),align=3S);
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0070

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 5 h 46 min

Figure 0007
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

currentprojection=orthographic(0.5,0.5,0.5); //if you want othographic look

size(16cm);

polyhedron Plane;
Plane[0]=(-2,-2,-1.5)--(2.5,-2,-1.5)--(2.5,2.5,-1.5)--(-2,2.5,-1.5)--cycle;
Plane[1]=(-2,-2,-1.5)--(-2,2.5,-1.5)--(-2,2.5,0)--(-2,-2,0)--cycle;

pen[] drawcol={black+1bp};
pen[] fcol1={0.8*red,0.8*blue,0.8*green,orange,heavycyan,gray};

triple[] posofsolids;
for(int i=0;i<5;++i) posofsolids[i]=(1.7*cos(2pi/5*i)+1,1.7*sin(2pi/5*i)+1,0);
polyhedron[] parr={ shift(posofsolids[0])*icosahedron,
                    shift(posofsolids[1])*dodecahedron,
                    shift(posofsolids[2])*cube,
                    shift(posofsolids[3])*rotate(45,Z)*octahedron,
                    shift(posofsolids[4])*rotate(90,Z)*tetrahedron,
                    Plane };

filldraw(parr,fcol=fcol1,dcol=drawcol,op=0.9);

if(!is3D()) {
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0080

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 6 h 46 min

Figure 0008
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

size(10cm);

// currentprojection=perspective(7,6,4); //if you want perspectivic look
currentprojection=orthographic(1,1,0.5); //if you want othographic look
currentlight=(1,1,2);
// currentlight=nolight;

polyhedron[] parr={truncTetraRight};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D()) {
  label("truncTetraRight",point(S),align=3S);
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0090

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 7 h 46 min

Figure 0009
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

size(10cm);

// currentprojection=perspective(7,6,4); //if you want perspectivic look
currentprojection=orthographic(1,1,0.5); //if you want othographic look
currentlight=(1,1,2);
// currentlight=nolight;

polyhedron[] parr={cubooctahedron};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D()) {
  label("cubooctahedron",point(S),align=3S);
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,


Unofficial package polyhedron_js.asy – fig0100

Category: Asymptote,polyhedron_js.asy,Unofficial packagesPh. Ivaldi @ 8 h 46 min

Figure 0010
(Compiled with Asymptote version 2.14svn-r5318)
    
//Author Jens Schwaiger.
import polyhedron_js;

// comment the following line for OpenGl
settings.render=0;

settings.tex="pdflatex";
settings.outformat="pdf"; // for opacity

size(10cm);

// currentprojection=perspective(7,6,4); //if you want perspectivic look
currentprojection=orthographic(1,1,0.5); //if you want othographic look
currentlight=(1,1,2);
// currentlight=nolight;

polyhedron[] parr={truncCube};
filldraw(parr,new pen[]{0.8green},op=0.9);

if(!is3D()) {
  label("truncCube",point(S),align=3S);
  shipout(bbox(3mm,darkblue+3bp+miterjoin,FillDraw(paleblue)));
}

Étiquettes : ,