ಮೂಲೊ ಫೈಲ್(ಎಸ್.ವಿ.ಜಿ ಫೈಲ್, ಸುಮಾರಾದ್ ೬೦೦ × ೧೭೪ ಚಿತ್ರೊಬಿಂದು, ಫೈಲ್‍ದ ಗಾತ್ರ: ೨ KB)

ಈ ಪುಟೊ Wikimedia Commonsಡ್ದ್ ಬೈದ್ಂಡ್ ಬೊಕ್ಕ ಬೇತೆ ಯೋಜನೆಲೆಡ್ ಗಲಸೊಲಿ. ಕಡತ ವಿವರಣೆ ಪುಟತ ಮಿತ್ತ್ ವಿವರಣೆನ್ ತಿರ್ತ ಸಾಲ್‍ಡ್ ತೋಜಾದ್ಂಡ್.

ಸಾರಾಂಸೊ

ವಿವರಣೆ
English: von Koch snowflake curve after 6 steps (4,097 points); initially created with Scilab, transformed into SVG by pstoedit, layout by Inkscape. New version was created by a text editor.
Français : Courbe du flocon de neige de von Koch après 6 étapes (4,097 points) ; initialement créé avec Scilab, transformé en SVG avec pstoedit, mis en forme avec Inkscape. La nouvelle version a été faite avec un éditeur de texte.
ದಿನೊ
ಮೂಲೊ ಸೊಂತೊ ರಚನೆ
ಲೇಕಕೆರ್ Christophe Dang Ngoc Chan (cdang)
ಒಪ್ಪುಗೆ
(ಈ ಫೈಲ್‍ನ್ ಕುಡ ಗಲಸೊಂದುಂಡು)
GFDL
ಇತರೆ ಆವೃತ್ತಿಗಳು Image:Von koch 1 etape.svg, Image:Von koch 2 etapes.svg, Image:Von koch 3 etapes.svg, Image:Von koch 4 etapes.svg, Image:Von koch 5 etapes.svg, Image:Von koch 6 etapes.svg, Image:VonKoch.svg
SVG genesis
InfoField
 
The SVG code is valid.
 
This map was created with a text editor.

Scilab source

English: English version by default.
Français : Version française, si les préférences de votre compte sont réglées (voir Special:Preferences).


Iterative source code

// ******************************
// *                            *
// * "Snowflake" von Koch curve *
// *                            *
// ******************************

clear;
clf;

// **************
// * constants *
// **************

n = 6;
// number of steps 
// limited to 9 (262 145 points), otherwise the stacksize must be changed
// 6 steps (4 097 points) are enough for a good rendering
N = 4^n+1; // amount of points
sin_soixante = sqrt(3)/2; // sin(60°)
l = 1; // length of the initial line (arbitrary unit)

// ******************
// * initialisation *
// ******************

ycourbe = [zeros(1,N)];
ycourbe1 = ycourbe;

// *************
// * functions *
// *************

function [xx, yy] = etape(x, y)
  
  // from a line [(x(1),y(1)) ; (x(2),y(2))]
  // make the line [(xx(1),yy(1)) ; (xx(2),yy(2)) ; (xx(3),yy(3))]
  // x and y are 2-cells tables, the ends of the basis line
  // xx and yy are 3-cells tables
  // the edges of the equilateral triangle
  
  xu = (x(2)-x(1))/3;
  yu = (y(2)-y(1))/3;
  // third of the basis line vector
  
  xv = 0.5*xu - sin_soixante*yu;
  yv = sin_soixante*xu + 0.5*yu;
  // vector turned by +60°
  
  xx(1) = x(1)+xu; yy(1) = y(1)+yu;
  xx(3) = x(2)-xu; yy(3) = y(2)-yu;
  
  xx(2) = xx(1) + xv;
  yy(2) = yy(1) + yv;  
endfunction

function [xkoch, ykoch] = vonkoch(x, y, n)
  // builds the curve
  // initialisation
  xkoch = x;
  ykoch = y;
  xkoch1 = x;
  ykoch1 = y;
  for i=1:n
    jmax = 4^(i-1);
    // number of lines at the beginning of the step i
    for j=1:jmax/2+1
      // we work with two points which indices are j and j+1 (line #j)
      // thanks t the symmetry, we work with a half curve
      decalage = (j-1)*4; 
      // the new points shift the next points by this offset
      x_init = xkoch(j:j+1);
      y_init = ykoch(j:j+1);
      // line #j
      [x_trans, y_trans] = etape(x_init,y_init);
      // transformed line
      xkoch1(decalage+1) = x_init(1); xkoch1(decalage+5) = x_init(2);
      ykoch1(decalage+1) = y_init(1); ykoch1(decalage+5) = y_init(2);
      for k=1:3
        xkoch1(k+decalage+1) = x_trans(k);
        ykoch1(k+decalage+1) = y_trans(k);
        // values put in the global vector
      end
    end
    xkoch = xkoch1; ykoch = ykoch1;
  end
  
  for i=1:4^n
    ykoch(N-i+1) = ykoch(i);
    xkoch(N-i+1) = l-xkoch(i); 
    // 2nd half-curve
  end
endfunction

// ****************
// * main program *
// ****************

xcourbe(2) = l;
[xcourbe,ycourbe] = vonkoch(xcourbe,ycourbe,n);

// drawing the curve

xpoly(xcourbe,ycourbe)
isoview(0,l,0,l*sin_soixante/3)

The following code can be added to directly generate the file (the SVG export was not implemented at the time the file was created).

// saving the file

name = "von_koch_"+string(n)+"_steps.svg";
xs2svg(0, name)

Recursive source code

The code is more compact but the execution is slower, and does not generate the table of values.

//============================================================================
// name: von_koch.sce
// author: Christophe Dang Ngoc Chan
// date of creation: 2012-10-23
// dates of modification: 
//    2013-07-08: quotes ' -> "
//    2013-07-2: vectorisation of the calculations
//----------------------------------------------------------------------------
// version of Scilab: 5.3.1
// required Atoms modules: aucun
//----------------------------------------------------------------------------
// Objective: draws the von Koch's "snowflake"
// Inputs: none (parameters are hard coded)
// Outputs: graphical window with a curve; SVG file
//============================================================================

clear;
clf;

// *************
// * constants *
// **************

n = 6; 
// number of steps 
// limited to 9 (262 145 points), otherwise the stacksize must be changed
// 6 steps (4 097 points) are enough for a good rendering
sin_soixante = sqrt(3)/2; // sin(60°)
l = 1;
// length of the initial line (arbitrary unit)

// ******************
// * initialisation *
// ******************



// *************
// * functions *
// *************

function [] = vonkoch(A, B, i)
    u = (B - A)/3 ; // third of the AB vector
    v = [0.5*u(1) - sin_soixante*u(2) ; sin_soixante*u(1) + 0.5*u(2)] ;
    // vector turned by +60°
    C = A + u ;
    D = C + v ;
    E = B - u ;
    // points of the line
    if i == 1 then
        // drawing the smallest segments
        x = [A(1) ; C(1) ; D(1) ; E(1) ; B(1) ];
        y = [A(2) ; C(2) ; D(2) ; E(2) ; B(2) ];
        xpoly(x, y, "lines")
    else
        j = i - 1 ;
        vonkoch(A, C, j);
        vonkoch(C, D, j);
        vonkoch(D, E, j);
        vonkoch(E, B, j);
        // recursive call
    end
endfunction

// ****************
// * main program *
// ****************

beginning = [0;0] ;
ending = [l;0] ;
vonkoch(beginning, ending, n)

isoview(0,l,0,sin_soixante*l)

// Saving the file

name = "von_koch_"+string(n)+"_steps.svg" ;
xs2svg(0, name)

ಪರವಾನಿಗೆ

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head ಈ ಲೇಕನೊನು ಫ್ರೀ ಸಾಫ್ಟ್‌ವೇರ್ ಫೌಂಡೇಶನ್ಡ್ದ್ ಪ್ರಕಟನೆ ಆಯಿನ ಜಿ‌ಎನ್‌ಯು ಫ್ರೀ ಡಾಕ್ಯುಮೆಂಟೇಶನ್ ಲೈಸೆನ್ಸ್, ಆವೃತ್ತಿ 1.2 ಅತ್ತ್‌ಡ ಬೊಕ್ಕ ಪ್ರಕಟನೆ ಆಯಿನ ಒವ್ವೇ ಆವೃತ್ತಿದ ನಿಬಂದನೆದಡಿಟ್; ಬದಲ್ ಮಲ್ಪೆರಾವಂದಿನ ವಿಬಾಗೊಲು ದಾಂತೆ, ಫ್ರಂಟ್-ಕವರ್ ಬರವು ದಾಂತೆ, ಬೊಕ್ಕ ಬ್ಯಾಕ್-ಕವರ್ ಬರವು ದಾಂತೆ; ನಕಲ್ ಮಲ್ಪೆರೆ, ವಿತರಣೆ ಮಲ್ಪೆರೆ ಅತ್ತ್‌ಡ ಬದಲ್ ಮಲ್ಪೆರೆ ಒಪ್ಪಿಗೆ ಉಂಡು. ಈ ಲೈಸೆನ್ಸ್‌ದ ಒಂಜಿ ಪ್ರತಿ ಜಿ‌ಎನ್‌ಯು ಫ್ರೀ ಡಾಕ್ಯುಮೆಂಟೇಶನ್ ಲೈಸೆನ್ಸ್ ಪನ್ಪಿ ವಿಬಾಗೊಡು ಉಂಡು.
w:en:Creative Commons
ಕೃಪೆ ಇತ್ತಿನ ಲೆಕೊನೆ ಪಟ್ಟ್‌ಲೆ
ಈ ಫೈಲ್ ಕ್ರಿಯೇಟಿವ್ ಕಾಮನ್ಸ್‌ಡ್ Attribution-Share Alike 3.0 Unported ಲೈಸೆನ್ಸ್‌ದ ಅಡಿಟ್ ಬರ್ಪುಂಡು.
ಇರೆಗ್ ಸೊಸಂತ್ರೊ ಉಂಡು:
  • ಪಟ್ಯರಗ್ – ಬೇಲೆನ್ ನಕಲ್, ವಿತರಣೆ ಮಲ್ಪೆರೆ ಬೊಕ್ಕ ಸಾಗಾಯೆರೆ
  • ಮಿಸ್ರೊ ಮಲ್ಪೆರೆ – ಈ ಬೇಲೆನ್ ಗಲಸೊನಿಯೆರೆ
ಈ ತಿರ್ತ್‍ದ ಸರತ್ತುಲೆಡ್:
  • ಕೃಪೆ – ಲೇಕಕೆರ್ ಅತ್ತಂಡ ಲೈಸನ್ಸರ್ ವ್ಯಕ್ತೊ ಮಲ್ತಿನ ರೀತಿಡ್ ಲೇಕನೊದ ಶ್ರೇಯೊನು (ಕ್ರೆಡಿಟ್) ಅರೆಗ್ ಕೊರೊಡು .(ಆಂಡ ಇರೆನ್ ಅತ್ತಂಡ ಈರ್ ಲೇಕನೊನು ಗಲಸಿನೇನ್ ಆರ್ ಸಮರ್ಥನೆ ಮಲ್ತಿಲೆಕೊ ತೊಜಪಾವುನ ರೀತಿಡ್ ಅತ್ತ್).
  • ಇತ್ತಿನ ಲೆಕೊನೆ ಪಟ್ಟ್‌ಲೆ – ಈರ್ ಈ ಕೃತಿನ್ ಬದಲಾವಣೆ ಅತ್ತಂಡ ರೂಪಾಂತರ ಮಲ್ತ್‌ಂಡ, ಅತ್ತಂಡ ಈ ಕೃತಿತ ಮಿತ್ತ್ ಬೇತೆ ದಾಲ ಬೇಲೆ ಮಲ್ತ್ಂಡ, ಐತ ಫಲಿತಾಂಸೊ ಕೃತಿನ್ ಈ ಲೈಸೆನ್ಸ್ ಅತ್ತಂಡ ಇಂಚಿಂತನೆ ಲೈಸೆನ್ಸ್‌ದ ತಿರ್ತ್ ಮಾತ್ರ ವಿತರಣೆ ಮಲ್ಪೊಲಿ.
This licensing tag was added to this file as part of the GFDL licensing update.
ಈರೆನ ಇಷ್ಟೊದ ಪರವಾನಿಗೆನ್ ಈರ್ ಆಯ್ಕೆ ಮಲ್ತೊನೊಲಿ

Captions

ಈ ಕಡತ ತೋಜಾವುನ ಮಾಹಿತಿದ ಒಂಜಿ ಗೆರೆತ ವಿವರಣೆ ಸೇರಾಲೆ.

Items portrayed in this file

depicts ಇಂಗ್ಲಿಷ್

some value

author name string ಇಂಗ್ಲಿಷ್: cdang
Wikimedia username ಇಂಗ್ಲಿಷ್: Cdang

copyright status ಇಂಗ್ಲಿಷ್

copyrighted ಇಂಗ್ಲಿಷ್

ಉಪಕ್ರಮ ಕನ್ನಡ

೨೯ ಜೂನ್ 2006

source of file ಇಂಗ್ಲಿಷ್

original creation by uploader ಇಂಗ್ಲಿಷ್

ಫೈಲ್‍ದ ಇತಿಹಾಸೊ

ದಿನೊ/ಪೊರ್ತುದ ಮಿತ್ತ್ ಒತ್ತ್ಂಡ ಫೈಲ್‍ ಆ ಪೊರ್ತುಡು ಎಂಚ ತೋಜೊಂದಿತ್ತ್ಂಡ್ ಪಂದ್ ತೂವೊಲಿ.

ದಿನೊ/ಪೊರ್ತುಎಲ್ಯಚಿತ್ರೊಆಯಾಮೊಲುಬಳಕೆದಾರೆರ್ಅಬಿಪ್ರಾಯೊ
ಇತ್ತೆದ೧೬:೫೨, ೨೧ ಪೆಬ್ರವರಿ ೨೦೧೮೧೬:೫೨, ೨೧ ಪೆಬ್ರವರಿ ೨೦೧೮ತ ಆವೃತ್ತಿದ ಎಲ್ಯಚಿತ್ರೊ೬೦೦ × ೧೭೪ (೨ KB)Cdangeven values and indentations
೦೩:೧೮, ೨೦ ಮೇ ೨೦೦೭೦೩:೧೮, ೨೦ ಮೇ ೨೦೦೭ತ ಆವೃತ್ತಿದ ಎಲ್ಯಚಿತ್ರೊ೬೨೧ × ೧೮೦ (೧ KB)FibonacciRemade from scratch with simpler code.
೨೦:೨೨, ೨೯ ಜೂನ್ ೨೦೦೬೨೦:೨೨, ೨೯ ಜೂನ್ ೨೦೦೬ತ ಆವೃತ್ತಿದ ಎಲ್ಯಚಿತ್ರೊ೩೦೯ × ೯೦ (೯೦ KB)Cdangin plain SVG (better behaviour)
೧೮:೩೬, ೨೯ ಜೂನ್ ೨೦೦೬೧೮:೩೬, ೨೯ ಜೂನ್ ೨೦೦೬ತ ಆವೃತ್ತಿದ ಎಲ್ಯಚಿತ್ರೊ೩೦೯ × ೯೦ (೯೬ KB)Cdang{{Information |Description= {{en|von Koch snow flake curve after 6 steps; created with Scilab, transformed into SVG by pstoedit, layout by Inkscape}} {{fr|Courbe du flocon de neige de von Koch après 6 étapes ; créé avec Scilab, transformé en SVG avec

ಈ ತಿರ್ತ್‍ದ ಪುಟೊ ಈ ಫೈಲ್‍ಗ್ ಸಂಪರ್ಕೊ ಕೊರ್ಪುಂಡು.

ಜಾಗತಿಕೊ ಫೈಲ್ ಉಪಯೋಗೊ

ಈ ಫೈಲ್‍ನ್ ತಿರ್ತ್ ಉಪ್ಪುನ ಬೇತೆ ವಿಕಿಲು ಗಲಸುವ:

ಮೆಟಾಡೇಟಾ

"https://tcy.wikipedia.org/wiki/ಫೈಲ್:Von_koch_6_etapes.svg"ಡ್ದ್ ದೆತ್ತೊಂದುಂಡು