-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathcube.js
More file actions
51 lines (40 loc) · 924 Bytes
/
cube.js
File metadata and controls
51 lines (40 loc) · 924 Bytes
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
41
42
43
44
45
46
47
48
49
50
51
const vs1 = [
{x: 0.125, y: 0.125, z: 0.125},
{x: -0.125, y: 0.125, z: 0.125},
{x: -0.125, y: -0.125, z: 0.125},
{x: 0.125, y: -0.125, z: 0.125},
{x: 0.125, y: 0.125, z: -0.125},
{x: -0.125, y: 0.125, z: -0.125},
{x: -0.125, y: -0.125, z: -0.125},
{x: 0.125, y: -0.125, z: -0.125},
{x: 0.25, y: 0.25, z: 0.25},
{x: -0.25, y: 0.25, z: 0.25},
{x: -0.25, y: -0.25, z: 0.25},
{x: 0.25, y: -0.25, z: 0.25},
{x: 0.25, y: 0.25, z: -0.25},
{x: -0.25, y: 0.25, z: -0.25},
{x: -0.25, y: -0.25, z: -0.25},
{x: 0.25, y: -0.25, z: -0.25},
]
const fs1 = [
[0, 1, 2, 3],
[4, 5, 6, 7],
[8, 9, 10, 11],
[12, 13, 14, 15],
[0, 4],
[1, 5],
[2, 6],
[3, 7],
[8, 12],
[9, 13],
[10, 14],
[11, 15],
[0, 8],
[1, 9],
[2, 10],
[3, 11],
[4, 12],
[5, 13],
[6 ,14],
[7, 15]
]