Initial commit

This commit is contained in:
github-classroom[bot] 2024-09-26 09:17:55 +00:00 committed by GitHub
commit 5d6a4935ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1678 changed files with 351156 additions and 0 deletions

44
data/bunny.json Normal file
View file

@ -0,0 +1,44 @@
{
"camera": {
"type": "perspective",
"focal_length": 1,
"eye": [0,0,2],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1.7777777778
},
"objects": [
{
"type": "soup",
"stl": "bunny.stl"
},
{
"type": "plane",
"point": [-1,0,0],
"normal": [1,0,0]
},
{
"type": "plane",
"point": [0,0,-1],
"normal": [0,0,1]
},
{
"type": "plane",
"point": [0,1,0],
"normal": [0,-1,0]
},
{
"type": "plane",
"point": [1,0,0],
"normal": [-1,0,0]
},
{
"type": "plane",
"point": [0,-1,0],
"normal": [0,1,0]
}
]
}

BIN
data/bunny.stl Normal file

Binary file not shown.

40
data/inside-a-sphere.json Normal file
View file

@ -0,0 +1,40 @@
{
"camera": {
"type": "perspective",
"focal_length": 3,
"eye": [0,0,5],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1.7777777778
},
"objects": [
{
"type": "plane",
"point": [-1,-1,0],
"normal": [1,0,0]
},
{
"type": "plane",
"point": [1,-1,0],
"normal": [-1,0,0]
},
{
"type": "plane",
"point": [0,1,0],
"normal": [0,-1,0]
},
{
"type": "plane",
"point": [0,-1,0],
"normal": [0,1,0]
},
{
"type": "sphere",
"center": [0.0,0,1.6],
"radius": 0.5
}
]
}

View file

@ -0,0 +1,24 @@
{
"camera": {
"type": "perspective",
"focal_length": 3,
"eye": [0,0,5],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1.7777777778
},
"objects": [
{
"type": "sphere",
"center": [0,0,0],
"radius": 0.5
},
{
"type": "plane",
"point": [0,-1,0],
"normal": [0,1,0]
}
]
}

41
data/sphere-packing.json Normal file
View file

@ -0,0 +1,41 @@
{
"camera": {
"type": "perspective",
"focal_length": 2.8,
"eye": [9.6,0.3,10],
"up": [-0.7071067812,0,0.7071067812],
"look": [-0.7071067812,0,-0.7071067812],
"height": 1,
"width": 1.7777777778
},
"objects": [
{
"type": "plane",
"point": [0,0,-1],
"normal": [0,0,1]
},
{
"type": "sphere",
"radius": 1,
"center": [0,0,1]
},
{
"type": "sphere",
"radius": 1,
"center": [2,0,1]
},
{
"type": "sphere",
"radius": 1,
"center": [1,1.7321,1]
},
{
"type": "sphere",
"radius": 1,
"center": [1,0.57735,2.633]
}
]
}

22
data/triangle.json Normal file
View file

@ -0,0 +1,22 @@
{
"camera": {
"type": "perspective",
"focal_length": 3,
"eye": [0,0,6],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1.7777777778
},
"objects": [
{
"type": "triangle",
"corners": [
[-0.5,0,0],
[0.5,0,0],
[0,0.8660254038,0]
]
}
]
}

View file

@ -0,0 +1,29 @@
{
"camera": {
"type": "perspective",
"focal_length": 3,
"eye": [0,0,5],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1.7777777778
},
"objects": [
{
"type": "sphere",
"center": [-0.6,0,0],
"radius": 0.5
},
{
"type": "sphere",
"center": [1.0,0,-4],
"radius": 1.0
},
{
"type": "plane",
"point": [0,-1,0],
"normal": [0,1,0]
}
]
}