Zum Inhalt springen

Datei:Triple torus array.png

aus AufEinWort, der freien Forschung
    Originaldatei (1.123 × 990 Pixel, Dateigröße: 250 KB, MIME-Typ: image/png)

    Diese Datei stammt aus Wikimedia Commons und kann von anderen Projekten verwendet werden. Die Beschreibung von deren Dateibeschreibungsseite wird unten angezeigt.

    Beschreibung

    Beschreibung
    English: Illustration of a triple torus
    Datum
    Quelle Eigenes Werk
    Urheber Oleg Alexandrov
    PNG‑Erstellung
    InfoField
     Dieses Diagramm wurde mit MATLAB erstellt.

    Lizenz

    Public domain Ich, der Urheberrechtsinhaber dieses Werkes, veröffentliche es als gemeinfrei. Dies gilt weltweit.
    In manchen Staaten könnte dies rechtlich nicht möglich sein. Sofern dies der Fall ist:
    Ich gewähre jedem das bedingungslose Recht, dieses Werk für jedweden Zweck zu nutzen, es sei denn, Bedingungen sind gesetzlich erforderlich.

    Source code

    % illustration of a triple torus, obtained as an isosurface
    function main()
    
       % big and small radii of the torus
       R = 3; r = 1; 
    
       % c controls the transition from one ring to the other
       c = 1.3*pi/2;
       
       Kb = R+r;
      
       h = 0.1; % h is the grid size. Smaller h means prettier picture.
       
       X = (-Kb-h):h:(5*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); x = my_map(x, Kb, c);   % map from two torii to one torus
             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, 42);
    
    % add in a source of light
       camlight (-50, 54); lighting phong;
    
    % save as png
      print('-dpng', '-r500', sprintf('Triple_torus_illustration.png'));
       
    % This function constructs the second and third rings in the triple torus
    % by mapping from the first one.
    function y=my_map(x, K, c)
    
       if x > 2*K
          y = -my_map(4*K - x, K, c);
       else
    
          if x > K
             x = 2*K - x;
          end
          
          if x < K-c
             y = x;
          else
             y = (K-c) + sin((x - (K-c))*(pi/2/c));
          end
          
       end
    
    Dieses Bild des Typs Math sollte als Vektorgrafik im SVG-Format neu erstellt werden. Vektorformate haben zahlreiche Vorteile; weitere Information unter Commons:Media for cleanup. Wenn dir eine SVG-Version dieses Bildes vorliegt, so lade diese bitte hoch. Nach dem Hochladen der Datei ist diese Vorlage auf der aktuellen Bildbeschreibungsseite durch die Vorlage {{Vector version available}}, oder kürzer {{Vva}}, zu ersetzen. Es ist empfohlen die neue SVG-Datei „Triple torus array.svg“ zu nennen – dann benötigt die Vorlage vector version available (bzw. vva) keinen Parameter.

    Kurzbeschreibungen

    Ergänze eine einzeilige Erklärung, was diese Datei darstellt.

    In dieser Datei abgebildete Objekte

    Motiv

    256.314 Byte

    990 Pixel

    1.123 Pixel

    image/png

    7b9f535c911d64c19fc22775851ac9cfc0304990

    Dateiversionen

    Klicke auf einen Zeitpunkt, um diese Version zu laden.

    Version vomVorschaubildMaßeBenutzerKommentar
    aktuell00:47, 13. Jul. 2008Vorschaubild der Version vom 00:47, 13. Jul. 20081.123 × 990 (250 KB)wikimediacommons>Oleg Alexandrov{{Information |Description={{en|1=x}} |Source=Own work by uploader |Author=Oleg Alexandrov |Date=x |Permission=x |other_versions=x }} x {{ImageUpload|full}} Category:x

    Die folgenden 2 Seiten verwenden diese Datei: