-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolyhedron_def_0x17.ksy
91 lines (87 loc) · 1.87 KB
/
polyhedron_def_0x17.ksy
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
meta:
id: polyhedron_def_0x17
endian: le
bit-endian: le
imports:
- wld_common
# POLYHEDRONDEFINITION
# TAG "BARREL3_POLYHDEF"
# BOUNDINGRADIUS 3.263896
# SCALEFACTOR 1.000000
# NUMVERTICES 8
# XYZ -1.270844 -1.340667 -2.690833
# XYZ 1.218169 -1.340667 -2.690833
# XYZ -1.270844 1.294759 -2.690833
# XYZ 1.218169 1.294759 -2.690833
# XYZ -1.270844 -1.340667 2.392483
# XYZ 1.218169 -1.340667 2.392483
# XYZ -1.270844 1.294759 2.392483
# XYZ 1.218169 1.294759 2.392483
# NUMFACES 6
# FACE
# NUMVERTICES 4
# VERTEXLIST 4 3 1 2
# ENDFACE
# FACE
# NUMVERTICES 4
# VERTEXLIST 8 6 5 7
# ENDFACE
# FACE
# NUMVERTICES 4
# VERTEXLIST 6 2 1 5
# ENDFACE
# FACE
# NUMVERTICES 4
# VERTEXLIST 8 4 2 6
# ENDFACE
# FACE
# NUMVERTICES 4
# VERTEXLIST 7 3 4 8
# ENDFACE
# FACE
# NUMVERTICES 4
# VERTEXLIST 5 1 3 7
# ENDFACE
# ENDPOLYHEDRONDEFINITION
seq:
- id: name_reference
type: s4
- id: flags
type: polyhedron_flags
- id: num_vertices
type: u4
- id: num_faces
type: u4
- id: bounding_radius
type: f4
- id: scale_factor
type: f4
if: flags.has_scale_factor
- id: vertices
type: wld_common::xyz
repeat: expr
repeat-expr: num_vertices
- id: faces
type: face
repeat: expr
repeat-expr: num_faces
types:
face:
seq:
- id: num_vertices
type: u4
- id: verticies
type: u4
repeat: expr
repeat-expr: num_vertices
- id: normal_abcd
type: wld_common::normal_abcd
if: _parent.flags.has_normal_abcd
polyhedron_flags:
seq:
- id: has_scale_factor
type: b1
- id: has_normal_abcd
type: b1
- id: unk
type: b30