-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathfigure.py
More file actions
44 lines (41 loc) · 736 Bytes
/
figure.py
File metadata and controls
44 lines (41 loc) · 736 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
##Vertices 0-7 (x,y,z)
vertices= (
(3, -.2, -1),
(3, .2, -1),
(-3, .2, -1),
(-3, -.2, -1),
(3, -.2, 1),
(3, .2, 1),
(-3, .2, 1),
(-3, -.2, 1)
)
edges = (
(0,1),
(0,3),
(0,4),
(2,1),
(2,3),
(2,6),
(5,1),
(5,4),
(5,6),
(7,3),
(7,4),
(7,6)
)
surfaces = (
(0,1,2,3),
(4,5,6,7),
(1,5,4,0),
(3,2,6,7),
(1,2,6,5),
(0,3,7,4)
)
colors = (
((1.0/255*41),(1.0/255*217),(1.0/255*152)),
((1.0/255*41),(1.0/255*217),(1.0/255*152)),
((1.0/255*242),(1.0/255*66),(1.0/255*128)),
((1.0/255*242),(1.0/255*66),(1.0/255*128)),
((1.0/255*19),(1.0/255*94),(1.0/255*242)),
((1.0/255*242),(1.0/255*66),(1.0/255*128)),
)