Debian Codegraph @

models/oiv_compliance/indexedlineset.iv

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