File size: 847 Bytes
228f09f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# https://github.com/mikedh/trimesh
# Vertices for the table with extents [1.2, 0.8, 0.03]
v -0.60000000 -0.40000000 -0.01500000
v -0.60000000 -0.40000000 0.01500000
v -0.60000000 0.40000000 -0.01500000
v -0.60000000 0.40000000 0.01500000
v 0.60000000 -0.40000000 -0.01500000
v 0.60000000 -0.40000000 0.01500000
v 0.60000000 0.40000000 -0.01500000
v 0.60000000 0.40000000 0.01500000

# UV coordinates from the example, defines points on the 2D texture map
# (u, v) values from 0.0 to 1.0
vt 0.0 0.0
vt 0.0 1.0
vt 1.0 0.0
vt 1.0 1.0
vt 0.0 0.5
vt 1.0 0.5
vt 0.5 0.0
vt 0.5 1.0

# Faces with UV mapping
# format: f vertex_index/uv_index vertex_index/uv_index vertex_index/uv_index
f 2/1 4/2 1/3
f 5/3 2/1 1/3
f 1/1 4/2 3/4
f 3/4 5/3 1/1
f 2/1 8/4 4/2
f 6/3 2/1 5/3
f 6/3 8/4 2/1
f 4/2 8/4 3/4
f 7/4 5/3 3/4
f 3/2 8/4 7/4
f 7/4 6/3 5/3
f 8/4 6/3 7/4