File:Surface of revolution illustration.png

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(693 × 885像素,文件大小:130 KB,MIME类型:image/png


摘要

描述 Illustration of a en:surface of revolution
日期 (UTC)
来源
 
本PNG 位图使用MATLAB创作.

source code below
作者 Oleg Alexandrov
其他版本 此文件衍生的作品:  Surface of revolution illustration violett.png
Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。

Source code (MATLAB)

% illustration of a surface of revolution
function main()

   % the number of data points. More points means prettier picture.
   N = 300;

   a=-3; b = 4.3;

   % polar coordinates
   ZZ = linspace(a, b, N);
   TTheta = linspace(0, 2*pi, N);

   % mesh grid
   [Z, Theta] = meshgrid(ZZ, TTheta);

   % the curve we will revolve
   R = cos(Z)+2; 
   
   X = R.*cos(Theta); Y = R.*sin(Theta);

   figure(2); clf; hold on; axis equal; axis off;
  
% plot the surface
   H=surf(X, Y, Z); shading faceted;

   % pick a color
   mycolor=[184, 77, 66]/256; % pink brick
   mycolor=[184, 224, 98]/256; % light green
%   mycolor=[225, 168, 48]/256; % golden brown
%   mycolor=[0, 66, 17]/256; % dark green
%   mycolor=[225, 0, 84]/256; % pink

   % set some propeties
   set(H, 'FaceColor', mycolor, 'EdgeColor','none', 'FaceAlpha', 1);
   set(H, 'SpecularColorReflectance', 0.1, 'DiffuseStrength', 0.8);
   set(H, 'FaceLighting', 'phong', 'AmbientStrength', 0.3);
   set(H, 'SpecularExponent', 108);
   
% viewing angle
   view(0, 12);

% add in a source of light
   camlight (-50, 54); lighting phong;
   
   % save as png
  print('-dpng', '-r200', 'Surface_of_revolution_illustration.png');

说明

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

此文件中描述的项目

描繪內容

文件历史

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

日期/时间缩⁠略⁠图大小用户备注
当前2011年9月8日 (四) 20:152011年9月8日 (四) 20:15版本的缩略图693 × 885(130 KB)QuibikSmoothed the edges and added transparency.
2007年9月5日 (三) 04:042007年9月5日 (三) 04:04版本的缩略图693 × 885(114 KB)Oleg Alexandrov{{Information |Description=Illustration of a en:surface of revolution |Source=self-made with MATLAB, source code below |Date=04:00, 5 September 2007 (UTC) |Author= Oleg Alexandrov }} {{PD-self}} Category:Surfaces [[Cat

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件: