forked from picosonic/js13k-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.js
31 lines (31 loc) · 4.06 KB
/
models.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 3D models
const models=[
{
t:"coriolis",
v:[[1,0,1],[0,1,1],[-1,0,1],[0,-1,1],[1,-1,0],[1,0,1],[0,-1,1],[1,0,1],[1,1,0],[0,1,1],[0,1,1],[-1,1,0],[-1,0,1],[-1,0,1],[-1,-1,0],[0,-1,1],[1,-1,0],[0,-1,1],[-1,-1,0],[0,-1,-1],[1,0,-1],[1,1,0],[1,0,1],[1,-1,0],[-1,0,-1],[-1,-1,0],[-1,0,1],[-1,1,0],[0,1,1],[1,1,0],[0,1,-1],[-1,1,0],[0,-1,-1],[-1,-1,0],[-1,0,-1],[0,-1,-1],[1,0,-1],[1,-1,0],[0,1,-1],[1,1,0],[1,0,-1],[-1,0,-1],[-1,1,0],[0,1,-1],[0,-1,-1],[-1,0,-1],[0,1,-1],[1,0,-1]],
f:[[1,2,3],[1,3,4],[5,6,7],[8,9,10],[11,12,13],[14,15,16],[17,18,19],[17,19,20],[21,22,23],[21,23,24],[25,26,27],[25,27,28],[29,30,31],[29,31,32],[33,34,35],[36,37,38],[39,40,41],[42,43,44],[45,46,47],[45,47,48]],
c:[7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],
s:3
},
{
t:"stealth",
v:[[-1354,0,25],[-1054,-200,25],[265,-535,25],[929,-1242,25],[1061,-1329,25],[1155,-1181,25],[1027,-783,25],[1353,-250,25],[1198,0,25],[1353,250,25],[1027,783,25],[1155,1181,25],[1061,1329,25],[929,1242,25],[265,535,25],[-1054,200,25],[-1034,0,149],[-958,-78,129],[-691,-114,165],[-578,-45,227],[-550,0,239],[-578,45,227],[-691,114,165],[-958,78,129],[1092,-351,60],[1272,-384,25],[1274,-126,25],[1091,-150,60],[1173,-252,80],[1091,150,60],[1274,126,25],[1272,384,25],[1092,351,60],[1173,250,80],[649,-351,109],[649,-150,109],[649,0,58],[649,150,109],[649,351,109],[-445,-348,25],[-393,-291,-97],[-445,-70,-87],[-445,70,-87],[-393,291,-97],[-445,348,25],[301,-340,-102],[301,340,-102],[-1147,0,-79],[877,250,-71],[877,-250,-71],[-564,0,-83],[-564,0,-238],[159,269,-104],[234,369,-225],[159,-269,-104],[234,-369,-225],[1092,-351,30],[1091,-150,30],[1159,-252,30],[1091,150,30],[1092,351,30],[1159,250,30]],
f:[[17,18,21],[18,19,21],[19,20,21],[17,21,24],[24,21,23],[21,22,23],[1,2,17],[2,18,17],[2,19,18],[2,3,19],[3,20,19],[3,21,20],[3,4,7],[4,5,6],[4,6,7],[7,26,3],[26,25,3],[9,28,27],[25,29,28],[25,28,36],[36,35,25],[25,35,3],[36,28,9],[9,37,36],[35,36,21],[21,3,35],[21,36,37],[1,17,16],[24,16,17],[23,16,24],[23,15,16],[22,15,23],[21,15,22],[15,11,14],[11,12,14],[12,13,14],[32,11,15],[33,32,15],[9,31,30],[30,34,33],[33,39,30],[39,38,30],[39,33,15],[9,30,38],[38,37,9],[38,39,21],[15,21,39],[21,37,38],[40,42,41],[43,45,44],[42,40,2],[42,2,1],[41,42,46],[46,42,43],[3,40,41],[3,41,46],[3,46,50],[3,50,4],[46,47,49],[50,9,8],[8,7,50],[50,6,4],[5,4,6],[6,50,7],[1,43,42],[45,43,16],[43,1,16],[43,44,47],[46,43,47],[44,45,15],[15,47,44],[49,15,14],[49,47,15],[49,50,46],[49,10,9],[49,14,12],[10,49,11],[12,14,13],[12,11,49],[50,49,9],[57,25,26],[57,26,8],[57,8,59],[59,8,27],[59,27,58],[58,27,28],[58,28,29],[58,29,59],[59,29,25],[59,25,57],[60,30,31],[60,31,10],[10,62,60],[62,10,32],[62,32,61],[61,32,33],[61,33,34],[61,34,62],[62,34,30],[62,30,60]],
c:[8,8,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,8,8,8,8,8,6,6,6,6,8,8,8,8,8,8,6,6,6,6],
s:0.0068
},
{
t:"chipcube",
v:[[-8,10,-10],[-10,10,-8],[-10,10,8],[-8,10,10],[8,10,10],[10,10,8],[10,10,-8],[8,10,-10],[-8,-10,-10],[-10,-10,-8],[-10,-10,8],[-8,-10,10],[8,-10,10],[10,-10,8],[10,-10,-8],[8,-10,-10],[-10,8,-10],[-10,8,10],[10,8,10],[10,8,-10],[-10,-8,-10],[-10,-8,10],[10,-8,10],[10,-8,-10]],
f:[[1,2,3],[1,3,4],[1,4,5],[1,5,6],[1,6,7],[1,7,8],[16,15,14],[16,14,13],[16,13,12],[16,12,11],[16,11,10],[16,10,9],[3,2,17],[3,17,21],[3,21,10],[3,10,11],[3,11,22],[3,22,18],[7,6,19],[7,19,23],[7,23,14],[7,14,15],[7,15,24],[7,24,20],[17,1,8],[17,8,20],[17,20,24],[17,24,16],[17,16,9],[17,9,21],[4,18,22],[4,22,12],[4,12,13],[4,13,23],[4,23,19],[4,19,5],[1,17,2],[3,18,4],[5,19,6],[7,20,8],[10,21,9],[12,22,11],[14,23,13],[16,24,15]],
c:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
s:10
},
{
t:"tree",
v:[[-0.5,-0.5,4],[-0.5,0.5,4],[0.5,0.5,4],[0.5,-0.5,4],[-0.5,-0.5,0],[-0.5,0.5,0],[0.5,0.5,0],[0.5,-0.5,0],[-3,-3,0],[-3,3,0],[3,3,0],[3,-3,0],[0,0,-8]],
f:[[1,5,8],[1,8,4],[4,8,7],[4,7,3],[1,2,6],[1,6,5],[7,6,2],[7,2,3],[9,13,12],[12,13,11],[11,13,10],[10,13,9],[9,12,11],[9,11,10]],
c:[9,9,9,9,9,9,9,9,10,10,10,10,10,10],
s:10
},
];