Image:DeCasteljau1.png

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.
Description

author: Przemysław Koprowski source: created by in Asymptote description: This image depictes the de Casteljau algorithm geometrically data: created on 7th of October 2006

Asymptote sources

Here are the Asymptote sources of the image in case someone wonts to modifie it.

size(10cm,4cm);

real t = 0.33;

pair[][] P = {{(0,0), (0.25,1.5), (1,2), (1,0)},
 {(0,0), (0.5,1), (1,2), (1,0)},
 {(0,0), (0.5,1), (1,2), (1,0)},
 {(0,0), (0.5,1), (1,2), (1,0)}};
path C[] = {nullpath, nullpath, nullpath, nullpath};
path g,ctr,d;
g = P[0][0]..controls P[0][1] and P[0][2]..P[0][3];
d = scale(0.025)*unitcircle;

int i,j,k;
C[0] = P[0][0]--P[0][1]--P[0][2]--P[0][3];
for(i = 1; i <= 3; ++i) {
for(j = 0; j <= 3-i; ++j) {
    P[i][j] = (1-t)*P[i-1][j] + t*P[i-1][j+1];
    C[i] = C[i]--P[i][j];
}
}

for(k =  0; k < 3; ++k) {
    draw(shift((2*k,0)) * C[k]);
    for(i = 0; i < 4-k; ++i) {
        string L = format("$P_%d$",i);
        label(L, shift((2*k,0)) * P[k][i], i < (4-k)/2 ? W : E);
    filldraw(shift((2*k,0)) * shift(P[k][i])*d);
}
    draw(shift((2*k,0)) * C[k+1], dashed);
    for(i = 0; i < 3-k; ++i)
    draw(shift((2*k,0)) * shift(P[k+1][i])*d);
    draw(shift((2*k,0)) * g);
}
Source

Originally from en.wikipedia; description page is/was here.

Date

2006-10-07 (original upload date)

Author

Original uploader was Pkoprowski at en.wikipedia

Permission
(Reusing this image)

Released into the public domain (by the author).


[edit] License information

This image should be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is already available, please upload it. After uploading an SVG, replace this template with template {{Vector version available|new image name.svg}} in this image.

العربية | Български | Català | Česky | Dansk | Deutsch | English | Esperanto | Español | Français | 한국어 | Italiano | Magyar | Lietuvių | Nederlands | 日本語 | Polski | Português | Română | Русский | Suomi | Svenska | Türkçe | Українська | Tiếng Việt | मराठी | ‪中文(繁體)‬ | ‪中文(简体)‬ | +/-

Public domain This image has been (or is hereby) released into the public domain by its author, Pkoprowski at the wikipedia project. This applies worldwide.

In case this is not legally possible:
Pkoprowski grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

This image should be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is already available, please upload it. After uploading an SVG, replace this template with template {{Vector version available|new image name.svg}} in this image.

العربية | Български | Català | Česky | Dansk | Deutsch | English | Esperanto | Español | Français | 한국어 | Italiano | Magyar | Lietuvių | Nederlands | 日本語 | Polski | Português | Română | Русский | Suomi | Svenska | Türkçe | Українська | Tiếng Việt | मराठी | ‪中文(繁體)‬ | ‪中文(简体)‬ | +/-

[edit] Original upload log

(All user names refer to en.wikipedia)

  • 2006-10-07 17:19 Pkoprowski 600×300×8 (15317 bytes) author: Przemysław Koprowski (myself) source: created by me in Asymptote description: This image depictes the de Casteljau algorithm geometrically data: created on 7th of October 2006

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current19:53, 18 March 2007600×300 (15 KB)Angusmclellan ({{Information |Description=author: Przemysław Koprowski source: created by in [http://asymptote.sourceforge.net/ Asymptote] description: This image depictes the de Casteljau algorithm geometrically data: created on 7th of October 2006 == Asymptote sour)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):