Debian Codegraph @

models/oiv_compliance/trianglestripset.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check all aspects of SoTriangleStripSet rendering.
4 #
5 # 19990414 mortene
6
7 Separator {
8 # Global settings.
9 Coordinate3 {
10 point [
11 -1 1 0, -1 -1 0, 1 -1 0, # face 0
12 -1 1 0, 1 1 0, 0 2 -1, # face 1
13 1 -1 0, 2 0 -1, 1 1 0, # face 2
14 -1 -1 0, 0 -2 -1, 1 -1 0, # face 3
15 -1 1 0, -2 0 -1, -1 -1 0, # face 4
16 ]
17 }
18 Material {
19 diffuseColor [
20 1 0 0, 0 1 0, 0 0 1, 1 1 0, 1 0 1, 0 1 1, 1 1 1, 0 0 0
21 ]
22 }
23 TextureCoordinate2 {
24 point [ 0 0, 0 1, 1 0, 1 1]
25 }
26
27 Switch {
28 whichChild -2
29
30 DEF tss TriangleStripSet {
31 numVertices [ 3, 3, 3, 3 ]
32 }
33 }
34
35
36 # (ROW 0) MaterialBinding
37 Separator {
38 MaterialBinding { value OVERALL }
39 USE tss
40
41 Translation { translation +5 0 0 }
42 MaterialBinding { value PER_PART }
43 USE tss
44
45 Translation { translation +5 0 0 }
46 MaterialBinding { value PER_PART_INDEXED }
47 USE tss
48
49 Translation { translation +5 0 0 }
50 MaterialBinding { value PER_FACE }
51 USE tss
52
53 Translation { translation +5 0 0 }
54 MaterialBinding { value PER_FACE_INDEXED }
55 USE tss
56
57 Translation { translation +5 0 0 }
58 MaterialBinding { value PER_VERTEX }
59 USE tss
60
61 Translation { translation +5 0 0 }
62 MaterialBinding { value PER_VERTEX_INDEXED }
63 USE tss
64 }
65
66 # (ROW 1) NormalBinding
67 Translation { translation 0 +6 0 }
68 Separator {
69 NormalBinding { value OVERALL }
70 USE tss
71
72 Translation { translation +5 0 0 }
73 NormalBinding { value PER_PART }
74 USE tss
75
76 Translation { translation +5 0 0 }
77 NormalBinding { value PER_PART_INDEXED }
78 USE tss
79
80 Translation { translation +5 0 0 }
81 NormalBinding { value PER_FACE }
82 USE tss
83
84 Translation { translation +5 0 0 }
85 NormalBinding { value PER_FACE_INDEXED }
86 USE tss
87
88 Translation { translation +5 0 0 }
89 NormalBinding { value PER_VERTEX }
90 USE tss
91
92 Translation { translation +5 0 0 }
93 NormalBinding { value PER_VERTEX_INDEXED }
94 USE tss
95 }
96
97 # (ROW 2) Test how IndexedTriangleStripSet is affected by Complexity.
98 Translation { translation 0 +6 0 }
99 Separator {
100 Complexity { type BOUNDING_BOX }
101 USE tss
102
103 Translation { translation +5 0 0 }
104 Complexity { type OBJECT_SPACE value 1.0 }
105 USE tss
106
107 Translation { translation +5 0 0 }
108 Complexity { type OBJECT_SPACE value 0.2 }
109 USE tss
110
111 Translation { translation +5 0 0 }
112 Complexity { type OBJECT_SPACE value 0.0 }
113 USE tss
114 }
115
116
117 # (ROW 3) With different LightModel settings.
118 Translation { translation 0 +6 0 }
119 Separator {
120 LightModel { model BASE_COLOR }
121 USE tss
122
123 Translation { translation +5 0 0 }
124 LightModel { model PHONG }
125 USE tss
126 }
127
128 # (ROW 4) With different DrawStyle settings.
129 Translation { translation 0 +6 0 }
130 Separator {
131 DrawStyle { style INVISIBLE }
132 USE tss
133
134 Translation { translation +5 0 0 }
135 DrawStyle { style LINES }
136 USE tss
137
138 Translation { translation +5 0 0 }
139 DrawStyle { style LINES lineWidth 1 }
140 USE tss
141
142 Translation { translation +5 0 0 }
143 DrawStyle { style LINES lineWidth 2 }
144 USE tss
145
146 Translation { translation +5 0 0 }
147 DrawStyle { style LINES lineWidth 4 }
148 USE tss
149
150 Translation { translation +5 0 0 }
151 DrawStyle { style LINES lineWidth 2 linePattern 0x0180 }
152 USE tss
153
154 Translation { translation +5 0 0 }
155 DrawStyle { style POINTS }
156 USE tss
157
158 Translation { translation +5 0 0 }
159 DrawStyle { style POINTS pointSize 3 }
160 USE tss
161
162 Translation { translation +5 0 0 }
163 DrawStyle { style FILLED }
164 USE tss
165 }
166
167 # (ROW 5) With different ShapeStyle settings.
168 Translation { translation 0 +6 0 }
169 Separator {
170 Translation { translation +5 0 0 }
171 ShapeHints { vertexOrdering CLOCKWISE }
172 USE tss
173
174 Translation { translation +5 0 0 }
175 ShapeHints { vertexOrdering COUNTERCLOCKWISE }
176 USE tss
177
178 Translation { translation +5 0 0 }
179 ShapeHints { shapeType UNKNOWN_SHAPE_TYPE }
180 USE tss
181
182 Translation { translation +5 0 0 }
183 ShapeHints { shapeType SOLID }
184 USE tss
185
186 Translation { translation +5 0 0 }
187 ShapeHints { faceType UNKNOWN_FACE_TYPE }
188 USE tss
189
190 Translation { translation +5 0 0 }
191 ShapeHints { faceType CONVEX }
192 USE tss
193
194 Translation { translation +5 0 0 }
195 ShapeHints { creaseAngle 0.5 }
196 USE tss
197
198 Translation { translation +5 0 0 }
199 ShapeHints { creaseAngle 1.57 }
200 USE tss
201 }
202
203 # (ROW 6) Test how IndexedTriangleStripSet is affected by texturemapping.
204 Translation { translation 0 +6 0 }
205 Separator {
206 Texture2 {
207 image 8 6 3
208 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
209 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
210 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
211 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
212 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
213 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
214 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
215 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
216 }
217
218 USE tss
219
220 Translation { translation +5 0 0 }
221 TextureCoordinateBinding { value PER_VERTEX }
222 USE tss
223
224 Translation { translation +5 0 0 }
225 TextureCoordinateBinding { value PER_VERTEX_INDEXED }
226 USE tss
227 }
228 }