Attēls:Moment of inertia cone.svg

Lapas saturs netiek atbalstīts citās valodās.
Vikipēdijas lapa

Sākotnējais fails(SVG fails, definētais izmērs 208 × 214 pikseļi, faila izmērs: 14 KB)

Kopsavilkums

Apraksts
English: Illustration of the moment of inertia of a cone.
Datums
Avots SVG rendering of the program used to generate the bitmap image Image:Moment_of_inertia_cone.png
Autors
  • Original MetaPost program by en:User:Grendelkhan
  • Program tweaked to avoid negative coordinates in PostScript output and rendered as SVG by Qef
  • Manually edited in inkscape to fixing intersection by Wiso
Citas versijas Bitmap rendering of almost identical program: Image:Moment_of_inertia_cone.png
SVG veidošana
InfoField
 
The SVG code is valid.
 
This vector image was created with MetaPost.
Pirmkods
InfoField

PostScript code

metapost-source
prologues := 3;

u=18mm;
textscale=u/12mm;

def cone =
  begingroup;
  save pmax,dmax,persp,persp_nt,tens,arr;
  save harr,rarr;
  save p,d;
  save axisprotrusion;
  save xax,yax,zax;
  save height,width,heightu,widthu;
  pmax = 2; dmax = 0;
  persp_nt = 0.5;
  tens = 2-persp_nt;
  persp = persp_nt*u;
  arr = 0.3u; % how far to offset the arrows from the diagram
  axisprotrusion = 0.4u;  % how far do the axes protrude?
  pair harr[],rarr[]; % endpoints for arrows
  path p[],d[]; % just plain paths for now
  pair xax[],yax[],zax[]; % x,y,z are taken; these are for the axes
  % parameters for the actual cone
  height = 1;
  width = 1.5;
  heightu = height*u;
  widthu = width*u;
  % solid paths
  p0 = (0,0)--(widthu/2,heightu);
  p1 = (0,0)--(-widthu/2,heightu);
  p2 = fullcircle scaled u xscaled width yscaled persp_nt shifted (0,heightu);
  % dotted paths
  % don't draw this; it's reference for the y-axis
  d99 = halfcircle scaled u xscaled 2 yscaled (2*persp_nt) rotated 180;
  % endpoints of dimension arrows
  harr0 = (widthu/2,0);
  harr1 = (widthu/2,heightu);
  rarr0 = (0,heightu);
  rarr1 = (widthu/2,heightu);

  % actually draw
  pickup pencircle scaled 1pt;
  for i=0 upto pmax:
    draw p[i];
  endfor;
  drawdblarrow (harr0..harr1);
  label.rt(btex $h$ etex scaled textscale,.5[harr0,harr1]);
  drawdblarrow (rarr0..rarr1);
  label.top(btex $r$ etex scaled textscale,.3[rarr0,rarr1]);
  % x axis
  xax0 = (0,0);
  xax1 = (widthu/2+arr,0);
  drawarrow (xax0..xax1);
  label.rt(btex $x$ etex scaled textscale,xax1);
  % y axis
  yax0 = (0,0);
  yax1 = point 1 of d99;
  yax2 = (width*persp_nt)[yax0,yax1];
  drawarrow (yax0..yax2);
  label.bot(btex $y$ etex scaled textscale,yax2);
  % z axis
  zax0 = (0,0);
  zax1 = (0,heightu);
  zax2 = (0,heightu+axisprotrusion);
  drawarrow (zax1..zax2);
  draw zax0..zax1 dashed evenly;
  label.top(btex $z$ etex scaled textscale,zax2);
  endgroup;
enddef;

beginfig(1)
  cone;
  currentpicture := currentpicture shifted (100,100); % avoid unwanted clipping
endfig;
end

Commands code

mpost fig.mp
ps2pdf -dEPSCrop fig.1 fig.pdf
pstoedit -page 1 -dt -xscale 2 -yscale 2 -f sk fig.pdf fig.sk
inkscape -z --vacuum-defs -f fig.sk -l fig.svg

Licence

Grendelkhan at the English Wikipedia, šī darba autortiesību īpašnieks, publicē to saskaņā ar šo licenci:
GNU head Ir dota atļauja kopēt, izplatīt un/vai pārveidot šo dokumentu saskaņā ar GNU brīvās dokumentācijas licences, versijas 1.2 vai jebkuras vēlākas versijas, ko publiskojis Brīvās programmatūras fonds nosacījumiem; bez nemainīgajām sadaļā, priekšējā un aizmugurēja'vāka tekstiem. Licences kopija ir iekļauta sadaļā ar nosaukumu GNU brīvās dokumentācijas licence.
w:en:Creative Commons
atsaucoties nemainot licenci
Šis fails tiek izplatīts saskaņā ar licences Creative Commons Atsauce-Līdzīgi Noteikumi 3.0 Vispārējiem noteikumiem.
Atsauce: Grendelkhan at the English Wikipedia
Jūs varat brīvi:
  • koplietot – kopēt, izplatīt un pārraidīt darbu
  • remiksēt – pielāgot darbu
Saskaņā ar šādiem nosacījumiem:
  • atsaucoties – Tev ir jānorāda autors, saite uz licenci un to, vai veiktas kādas izmaiņas. To var darīt jebkādā saprātīgā veidā, bet ne tādā, kas norādītu, ka licencētājs atbalsta tevi vai veidu, kā tu izmanto šo darbu.
  • nemainot licenci – Ja tu miksē, pārveido vai izmanto materiālu, tev savs devums jāpublicē ar to pašu vai saderīgu licenci kā oriģināls.
This licensing tag was added to this file as part of the GFDL licensing update.

Captions

Pievieno vienas rindiņas aprakstu, ko šis fails attēlo
engls

Šajā failā attēlotais

attēlo

9 jūlijs 2008

Faila hronoloģija

Uzklikšķini uz datums/laiks kolonnā esošās saites, lai apskatītos, kā šis fails izskatījās tad.

Datums/LaiksAttēlsIzmēriDalībnieksKomentārs
tagadējais2008. gada 23. septembris, plkst. 14.122008. gada 23. septembris, plkst. 14.12 versijas sīktēls208 × 214 (14 KB)Wiso{{Information |Description= |Source= |Date= |Author= |Permission= |other_versions= }}
2008. gada 10. jūlijs, plkst. 01.362008. gada 10. jūlijs, plkst. 01.36 versijas sīktēls208 × 214 (12 KB)Qef{{Information |Description={{en|1=Illustration of the moment of inertia of a cone.}} |Source=SVG rendering of the program used to generate the bitmap image Image:Moment_of_inertia_cone.png |Author=* Original MetaPost program by [[en:User:Grendelkhan]

Šo failu izmanto šajā 1 lapā:

Globālais faila lietojums

Šīs Vikipēdijas izmanto šo failu: