File:Moment of inertia solid sphere.png

Moment_of_inertia_solid_sphere.png(147 × 135像素,文件大小:4 KB,MIME类型:image/png


摘要

描述 MetaPost image of a sphere, with dimensions and axes specified. Embedded in a TeX document, viewed with gv, rasterized via screenshot, saved as PNG with The Gimp, and compressed with optipng.
日期 未知日期
Unknown date
来源 en.wikipedia.org
作者 Grendelkhan
PNG开发
InfoField
 
本PNG 位图使用MetaPost创作。
(Note that this source code doesn't fill the circle, and draws the x and y axes the wrong way round. The code provided with the SVG version of this image corrects these problems.)
源代码
InfoField

PostScript code

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

 % this MetaPost script generates a PostScript file, which is then included in a
 % TeX document. if you want to generate EPS from this, you'll have to uncomment
 % the following line. (and probably do a couple more things, to boot.)
 %prologues := 1;

 def sphere =
   begingroup;
   save pmax,dmax,persp,persp_nt,tens,arr;
   save rarrlft,rarrrt;
   save p,d;
   save axisprotrusion;
   save xax,yax,zax;
   pmax = 0; dmax = 1;
   persp_nt = 0.3;
   tens = 2-persp_nt;
   persp = persp_nt*u;
   arr = 0.3u; % how far to offset the arrows from the diagram
   axisprotrusion = 0.3u;  % how far do the axes protrude?
   pair rarrlft,rarrrt; % 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
   % solid paths
   p0 = fullcircle scaled 2u;
   % dotted paths
   d0 = halfcircle scaled u xscaled 2 yscaled (2*persp_nt);
   d1 = halfcircle scaled u xscaled 2 yscaled (2*persp_nt) rotated 180;
   % endpoints of dimension arrows
   rarrlft = (0,0);
   rarrrt = (sqrt(0.5)*u,sqrt(0.5)*u);

   % actually draw
   pickup pencircle scaled 1pt;
   for i=0 upto pmax:
     draw p[i];
   endfor;
   for i=0 upto dmax:
     draw d[i] dashed evenly;
   endfor;
   drawdblarrow (rarrlft..rarrrt);
   label.top(btex $r$ etex scaled textscale,.5[rarrlft,rarrrt]);
   % x axis
   xax0 = (0,0);
   xax1 = (1u,0);
   xax2 = (1u+axisprotrusion,0);
   drawarrow (xax1..xax2);
   draw xax0..xax1 dashed evenly;
   label.rt(btex $x$ etex scaled textscale,xax2);
   % y axis
   yax0 = (0,0);
   yax1 = point 1 of d1;
   yax2 = (1.3+axisprotrusion/u)[yax0,yax1];
   drawarrow (yax1..yax2);
   draw yax0..yax1 dashed evenly;
   label.bot(btex $y$ etex scaled textscale,yax2);
   % z axis
   zax0 = (0,0);
   zax1 = (0,1u);
   zax2 = (0,1u+axisprotrusion);
   drawarrow (zax1..zax2);
   draw zax0..zax1 dashed evenly;
   label.top(btex $z$ etex scaled textscale,zax2);
   endgroup;
 enddef;

 beginfig(1)
   sphere;
 endfig;

许可协议

w:zh:知识共享
署名 相同方式共享
本文件采用知识共享署名-相同方式共享 3.0 未本地化版本许可协议授权。 受免責聲明的約束。
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
本许可协议标签作为GFDL许可协议更新的组成部分被添加至本文件。
GNU head 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。 受免責聲明的約束。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2007年10月28日 (日) 08:182007年10月28日 (日) 08:18版本的缩略图147 × 135(4 KB)Prince Max
2006年6月3日 (六) 16:112006年6月3日 (六) 16:11版本的缩略图147 × 135(2 KB)Szwedzki== Summary == {{Information |Description=MetaPost image of a sphere, with dimensions and axes specified. Embedded in a TeX document, viewed with gv, rasterized via screenshot, saved as PNG with The Gimp, and compressed with optipng. |Source=en.wikipedia.o

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件: