-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcube.js
More file actions
40 lines (39 loc) · 2.36 KB
/
Copy pathcube.js
File metadata and controls
40 lines (39 loc) · 2.36 KB
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
32
33
34
35
36
37
38
39
40
// @ts-check
const cubeMesh = {
vertices: [
[-70,-70,-70], [-23.33,-70,-70], [23.33,-70,-70], [70,-70,-70],
[-70,-23.33,-70], [-23.33,-23.33,-70], [23.33,-23.33,-70], [70,-23.33,-70],
[-70,23.33,-70], [-23.33,23.33,-70], [23.33,23.33,-70], [70,23.33,-70],
[-70,70,-70], [-23.33,70,-70], [23.33,70,-70], [70,70,-70],
[70,-70,70], [23.33,-70,70], [-23.33,-70,70], [-70,-70,70],
[70,-23.33,70], [23.33,-23.33,70], [-23.33,-23.33,70], [-70,-23.33,70],
[70,23.33,70], [23.33,23.33,70], [-23.33,23.33,70], [-70,23.33,70],
[70,70,70], [23.33,70,70], [-23.33,70,70], [-70,70,70],
[-70,-70,23.33], [-70,-70,-23.33], [-70,-23.33,23.33], [-70,-23.33,-23.33],
[-70,23.33,23.33], [-70,23.33,-23.33], [-70,70,23.33], [-70,70,-23.33],
[70,-70,-23.33], [70,-70,23.33], [70,-23.33,-23.33], [70,-23.33,23.33],
[70,23.33,-23.33], [70,23.33,23.33], [70,70,-23.33], [70,70,23.33],
[-23.33,-70,23.33], [23.33,-70,23.33], [-23.33,-70,-23.33], [23.33,-70,-23.33],
[-23.33,70,-23.33], [23.33,70,-23.33], [-23.33,70,23.33], [23.33,70,23.33],
],
triangles: [
[0,4,5], [0,5,1], [1,5,6], [1,6,2], [2,6,7], [2,7,3],
[4,8,9], [4,9,5], [5,9,10], [5,10,6], [6,10,11], [6,11,7],
[8,12,13], [8,13,9], [9,13,14], [9,14,10], [10,14,15], [10,15,11],
[16,20,21], [16,21,17], [17,21,22], [17,22,18], [18,22,23], [18,23,19],
[20,24,25], [20,25,21], [21,25,26], [21,26,22], [22,26,27], [22,27,23],
[24,28,29], [24,29,25], [25,29,30], [25,30,26], [26,30,31], [26,31,27],
[19,23,34], [19,34,32], [32,34,35], [32,35,33], [33,35,4], [33,4,0],
[23,27,36], [23,36,34], [34,36,37], [34,37,35], [35,37,8], [35,8,4],
[27,31,38], [27,38,36], [36,38,39], [36,39,37], [37,39,12], [37,12,8],
[3,7,42], [3,42,40], [40,42,43], [40,43,41], [41,43,20], [41,20,16],
[7,11,44], [7,44,42], [42,44,45], [42,45,43], [43,45,24], [43,24,20],
[11,15,46], [11,46,44], [44,46,47], [44,47,45], [45,47,28], [45,28,24],
[19,32,48], [19,48,18], [18,48,49], [18,49,17], [17,49,41], [17,41,16],
[32,33,50], [32,50,48], [48,50,51], [48,51,49], [49,51,40], [49,40,41],
[33,0,1], [33,1,50], [50,1,2], [50,2,51], [51,2,3], [51,3,40],
[12,39,52], [12,52,13], [13,52,53], [13,53,14], [14,53,46], [14,46,15],
[39,38,54], [39,54,52], [52,54,55], [52,55,53], [53,55,47], [53,47,46],
[38,31,30], [38,30,54], [54,30,29], [54,29,55], [55,29,28], [55,28,47],
],
};