File:Surface of revolution illustration.png
维基共享资源,媒体文件资料库
跳转到导航
跳转到搜索
本预览的尺寸:469 × 599像素。 其他分辨率:188 × 240像素 | 376 × 480像素 | 693 × 885像素。
原始文件 (693 × 885像素,文件大小:130 KB,MIME类型:image/png)
文件信息
结构化数据
说明
摘要[编辑]
描述Surface of revolution illustration.png |
Illustration of a en:surface of revolution |
日期 | (UTC) |
来源 |
source code below |
作者 | Oleg Alexandrov |
其他版本 | 此文件衍生的作品: Surface of revolution illustration violett.png: |
Public domainPublic domainfalsefalse |
我,本作品著作权人,释出本作品至公有领域。这适用于全世界。 在一些国家这可能不合法;如果是这样的话,那么: 我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。 |
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:15 | 693 × 885(130 KB) | Quibik(留言 | 贡献) | Smoothed the edges and added transparency. | |
2007年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 |
您不可以覆盖此文件。
文件用途
以下2个页面使用本文件:
全域文件用途
以下其他wiki使用此文件:
- ar.wikipedia.org上的用途
- bn.wikipedia.org上的用途
- en.wikipedia.org上的用途
- eu.wikipedia.org上的用途
- fa.wikipedia.org上的用途
- fi.wikipedia.org上的用途
- fr.wikipedia.org上的用途
- gl.wikipedia.org上的用途
- hu.wikipedia.org上的用途
- it.wikipedia.org上的用途
- ja.wikipedia.org上的用途
- pt.wikipedia.org上的用途
- ru.wikipedia.org上的用途
- ta.wikipedia.org上的用途
- th.wikipedia.org上的用途
- uk.wikipedia.org上的用途
- vi.wikipedia.org上的用途
- zh.wikipedia.org上的用途