Debian Codegraph @

models/oiv_compliance/faceset.iv

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