File:Torus illustration.png
维基共享资源,媒体文件资料库
跳转到导航
跳转到搜索
本预览的尺寸:800 × 528像素。 其他分辨率:320 × 211像素 | 640 × 422像素 | 900 × 594像素。
原始文件 (900 × 594像素,文件大小:147 KB,MIME类型:image/png)
文件信息
结构化数据
说明
描述Torus illustration.png | Illustration of torus |
日期 | (UTC) |
来源 | self-made, with MATLAB |
作者 | Oleg Alexandrov |
其他版本 | 此文件衍生的作品: Infobox torus.png |
Public domainPublic domainfalsefalse |
我,本作品著作权人,释出本作品至公有领域。这适用于全世界。 在一些国家这可能不合法;如果是这样的话,那么: 我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。 |
Source code[编辑]
% illustration of a torus, obtained as an isosurface
function main()
% big and small radii of the torus
R = 3; r = 1;
Kb = R+r;
h = 0.1; % h is the grid size. Smaller h means prettier picture.
X = (-Kb-h):h:(Kb+h); m = length(X);
Y = (-Kb-h):h:(Kb+h); n = length(Y);
Z = (-r-h):h:(r+h); k = length(Z);
W = zeros(m, n, k); % the zero level set of this function will be the desired shape
for i=1:m
for j=1:n
x = X(i);
y = Y(j);
W(i, j, :) = (sqrt(x^2+y^2)-R)^2 + Z.^2-r^2; % torus eqn, vectorize in Z
end
end
figure(4); clf; hold on; axis equal; axis off;
H = patch(isosurface(W, 0));
isonormals(W, H);
light_green=[184, 224, 98]/256;
% set some propeties
set(H, 'FaceColor', light_green, 'EdgeColor','none', 'FaceAlpha', 1);
set(H, 'SpecularColorReflectance', 0.1, 'DiffuseStrength', 0.8);
set(H, 'FaceLighting', 'phong', 'AmbientStrength', 0.3);
set(H, 'SpecularExponent', 108);
daspect([1 1 1]);
axis tight;
colormap(prism(28))
% viewing angle
view(-146, 32);
% add in a source of light
camlight (-10, 54); lighting phong;
%save as png
print('-dpng', '-r400', sprintf('Torus_illustration.png'));
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2008年7月13日 (日) 01:12 | 900 × 594(147 KB) | Oleg Alexandrov(留言 | 贡献) | {{Information |Description=Illustration of torus |Source=self-made, with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov }} {{PD-self}} ==Source code== <source lang="matlab"> % illustration of a torus, o |
您不可以覆盖此文件。
文件用途
以下页面使用本文件:
全域文件用途
以下其他wiki使用此文件:
- ar.wikipedia.org上的用途
- ca.wikipedia.org上的用途
- cs.wikipedia.org上的用途
- cv.wikipedia.org上的用途
- de.wikipedia.org上的用途
- de.wikiversity.org上的用途
- Kurs:Algebraische Kurven (Osnabrück 2008)/Vorlesung 28
- Kurs:Topologie (Osnabrück 2008-2009)/Vorlesung 19
- Topologie/Theorie der Fundamentalgruppe/Seifert-van Kampen/Orientierbare Flächen/Beispiel
- Kurs:Algebraische Kurven (Osnabrück 2012)/Vorlesung 28
- Kurs:Algebraische Kurven (Osnabrück 2017-2018)/Vorlesung 28
- Kurs:Algebraische Kurven (Osnabrück 2017-2018)/Vorlesung 28/kontrolle
- Glatte projektive Kurve/Geschlecht/Textabschnitt
- Kurs:Bündel, Garben und Kohomologie (Osnabrück 2019-2020)/Vorlesung 29
- Kurs:Bündel, Garben und Kohomologie (Osnabrück 2019-2020)/Vorlesung 29/kontrolle
- Kurs:Elliptische Kurven (Osnabrück 2021-2022)/Vorlesung 17
- Kurs:Elliptische Kurven (Osnabrück 2021-2022)/Vorlesung 17/kontrolle
- Riemannsche Fläche/Kompakt/Topologisches Geschlecht/Triangulierung/Übersicht/Textabschnitt
- Kurs:Riemannsche Flächen (Osnabrück 2022)/Vorlesung 32
- Kurs:Riemannsche Flächen (Osnabrück 2022)/Vorlesung 32/kontrolle
- el.wikipedia.org上的用途
- en.wikipedia.org上的用途
- eo.wikipedia.org上的用途
- es.wikipedia.org上的用途
- eu.wikipedia.org上的用途
- fa.wikipedia.org上的用途
- fi.wikipedia.org上的用途
- fr.wikipedia.org上的用途
- he.wikipedia.org上的用途
- hy.wikipedia.org上的用途
查看本文件的更多全域用途。