לדלג לתוכן

קובץ:Gray configuration.svg

תוכן הדף אינו נתמך בשפות אחרות.
מתוך ויקיפדיה, האנציקלופדיה החופשית

לקובץ המקורי(קובץ SVG, הגודל המקורי: 368 × 374 פיקסלים, גודל הקובץ: 13 ק"ב)

ויקישיתוף זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה.

תקציר

תיאור The Gray configuration, 27 points and 27 lines meeting three lines to a point and three points to a line, drawn as a perspective view of a three-dimensional 3x3x3 grid.
תאריך יצירה
מקור נוצר על־ידי מעלה היצירה
יוצר David Eppstein

Source code

This image was created as a pdf file by the following Python code, then rescaled and converted to SVG.

from pyx import canvas,path,color
from math import sqrt,tan,asin

pov = (-20,6,5)
x,y,z = 2,1,0
radius = 0.05
scale = 10.0
vertexColor = [color.rgb.red]
edgeColor = [color.rgb.black]

def distance(p,q):
    return sqrt(sum([(p[i]-q[i])**2 for i in (x,y,z)]))

def perspective(loc):
    dz = loc[z]-pov[z]
    return (loc[x]-pov[x])*scale/dz, (loc[y]-pov[y])*scale/dz

def vertex(p):
    lx,ly = perspective(p)
    prad = scale*1.1*tan(asin(radius/(distance(p,pov))))
    c.fill(path.circle(lx,ly,prad),vertexColor)

def edge(p,q):
    lx1,ly1 = perspective(p)
    lx2,ly2 = perspective(q)
    c.stroke(path.line(lx1,ly1,lx2,ly2),edgeColor)

c = canvas.canvas()

for i in range(3):
    for j in range(3):
        edge((i,j,0),(i,j,2))
        edge((i,0,j),(i,2,j))
        edge((0,i,j),(2,i,j))

for i in range(3):
    for j in range(3):
        for k in range(3):
            vertex((i,j,k))

c.writePDFfile("Gray configuration")

רישיון

Public domain ברצוני, בעלי זכויות היוצרים על יצירה זו, לשחרר יצירה זו לנחלת הכלל. זה תקף בכל העולם.
יש מדינות שבהן הדבר אינו אפשרי על פי חוק, אם כך:
אני מעניק לכל אחד את הזכות להשתמש בעבודה זו לכל מטרה שהיא, ללא תנאים כלשהם, אלא אם כן תנאים כאלה נדרשים על פי חוק.

כיתובים

נא להוסיף משפט שמסביר מה הקובץ מייצג

פריטים שמוצגים בקובץ הזה

מוצג

היסטוריית הקובץ

ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.

תאריך/שעהתמונה ממוזערתממדיםמשתמשהערה
נוכחית21:04, 12 באפריל 2008תמונה ממוזערת לגרסה מ־21:04, 12 באפריל 2008‪374 × 368‬ (13 ק"ב)David Eppstein{{Information |Description=The Gray configuration, 27 points and 27 lines meeting three lines to a point and three points to a line, drawn as a perspective view of a three-dimensional 3x3x3 grid. |Source=self-made |Date=April 12, 2008 |

אין בוויקיפדיה דפים המשתמשים בקובץ זה.

שימוש גלובלי בקובץ

אתרי הוויקי השונים הבאים משתמשים בקובץ זה: