Tiedosto:Surface of revolution illustration.png

Alkuperäinen tiedosto(693 × 885 kuvapistettä, 130 KiB, MIME-tyyppi: image/png)

Yhteenveto

Kuvaus Illustration of a en:surface of revolution
Päiväys (UTC)
Lähde
 
Tämä PNG tietokonegrafiikka luotiin käyttäen apuna ohjelmaa MATLAB.

source code below
Tekijä Oleg Alexandrov
Muut versiot Tämän tiedoston johdannaisteoksia:  Surface of revolution illustration violett.png
Public domain Minä, tämän teoksen tekijänoikeudellinen omistaja, julkaisen tämän teoksen public domainiin eli luovun kaikista tekijänoikeuksista lain sallimissa puitteissa. Tämä on voimassa maailmanlaajuisesti.
Joissain maissa laki ei mahdollista tätä. Mikäli näin on:
Myönnän kenelle tahansa oikeuden käyttää tätä teosta mihin tahansa tarkoitukseen, ilman mitään ehtoja, ellei laki vaadi ehtojen asettamista.

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

Kuvatekstit

Lisää yhden rivin pituinen kuvaus tästä tiedostosta

Kohteet, joita tässä tiedostossa esitetään

esittää

5. syyskuu 2007

image/png

Tiedoston historia

Päiväystä napsauttamalla näet, millainen tiedosto oli kyseisellä hetkellä.

PäiväysPienoiskuvaKokoKäyttäjäKommentti
nykyinen8. syyskuuta 2011 kello 23.15Pienoiskuva 8. syyskuuta 2011 kello 23.15 tallennetusta versiosta693 × 885 (130 KiB)QuibikSmoothed the edges and added transparency.
5. syyskuuta 2007 kello 07.04Pienoiskuva 5. syyskuuta 2007 kello 07.04 tallennetusta versiosta693 × 885 (114 KiB)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

Seuraavat 2 sivua käyttävät tätä tiedostoa:

Tiedoston järjestelmänlaajuinen käyttö

Seuraavat muut wikit käyttävät tätä tiedostoa: