ファイル:Torus illustration.png

提供: testwiki
ナビゲーションに移動 検索に移動
    元のファイル (900 × 594 ピクセル、ファイルサイズ: 147キロバイト、MIME タイプ: image/png)

    このファイルはウィキメディア・コモンズのものであり、他のプロジェクトで使用されている可能性があります。 ウィキメディア・コモンズでのファイル解説ページにある説明を以下に示します。

    概要

    解説 Illustration of torus
    日付 (UTC)
    原典 投稿者自身による著作物
    作者 Oleg Alexandrov
    その他のバージョン このファイルの派生的著作物:  Infobox torus.png: 
    PNG 開発
    InfoField
     この 図式はMATLABで作成されました。

    ライセンス

    Public domain この作品の著作権者である私は、この作品についての権利を放棄しパブリックドメインとします。これは全世界で適用されます。
    一部の国では、これが法的に可能ではない場合があります。その場合は、次のように宣言します。
    私は、あらゆる人に対して、法により必要とされている条件を除き、如何なる条件も課すことなく、あらゆる目的のためにこの著作物を使用する権利を与えます。

    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'));
    

    キャプション

    このファイルの内容を1行で記述してください

    このファイルに描写されている項目

    題材

    13 7 2008

    150,645 バイト

    594 ピクセル

    900 ピクセル

    40b8981eb5d3c98f12109b57b0f281e7a0f6dbc0

    ファイルの履歴

    過去の版のファイルを表示するには、その版の日時をクリックしてください。

    日時サムネイル寸法利用者コメント
    現在の版2008年7月13日 (日) 02:122008年7月13日 (日) 02:12時点における版のサムネイル900 × 594 (147キロバイト)wikimediacommons>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

    このファイルを使用しているページはありません。