Image:DeCasteljau1.png

From Wikipedia, the free encyclopedia

DeCasteljau1.png (15KB, MIME type: image/png)

This page is a candidate to be copied to the Wikimedia Commons using the Transwiki process.
Wikipedia is not a collection of photographs or media files with no text to go with the articles. If you are interested in presenting a picture, please edit the article to provide an encyclopedic context. You may also want to consider changing this page's title to better suit an encyclopedia entry.

ℹ This image was uploaded in the PNG, GIF, or JPEG format. However, it contains information that could be stored more efficiently or more accurately in the SVG format. If possible, please upload a SVG version of this image. After doing so, please replace all instances of the previous version throughout Wikipedia (noted under the "File links" header), tag the old version with {{Vector version available|NewImage.svg}}, and remove this tag. For more information, see Wikipedia:Preparing images for upload.

[edit] Summary

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

[edit] Licensing

Public domain

I, the creator of this work, hereby release it into the public domain. This applies worldwide.
In case this is not legally possible,
I grant any entity the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

[edit] 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);
}

File history

Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.
Click on date to download the file or see the image uploaded on that date.

  • (del) (cur) 17:19, 7 October 2006 . . Pkoprowski (Talk | contribs) . . 600×300 (15,317 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)

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):