Debian Codegraph @

models/oiv_compliance/lineset.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check all aspects of SoLineSet 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 ls LineSet {
35 numVertices [ 4, 3, 3, 3, 3 ]
36 }
37 }
38
39
40 # (ROW 0) MaterialBinding
41 Separator {
42 MaterialBinding { value OVERALL }
43 USE ls
44
45 Translation { translation +5 0 0 }
46 MaterialBinding { value PER_PART }
47 USE ls
48
49 Translation { translation +5 0 0 }
50 MaterialBinding { value PER_PART_INDEXED }
51 USE ls
52
53 Translation { translation +5 0 0 }
54 MaterialBinding { value PER_FACE }
55 USE ls
56
57 Translation { translation +5 0 0 }
58 MaterialBinding { value PER_FACE_INDEXED }
59 USE ls
60
61 Translation { translation +5 0 0 }
62 MaterialBinding { value PER_VERTEX }
63 USE ls
64
65 Translation { translation +5 0 0 }
66 MaterialBinding { value PER_VERTEX_INDEXED }
67 USE ls
68 }
69
70 # (ROW 1) NormalBinding
71 Translation { translation 0 +6 0 }
72 Separator {
73 NormalBinding { value OVERALL }
74 USE ls
75
76 Translation { translation +5 0 0 }
77 NormalBinding { value PER_PART }
78 USE ls
79
80 Translation { translation +5 0 0 }
81 NormalBinding { value PER_PART_INDEXED }
82 USE ls
83
84 Translation { translation +5 0 0 }
85 NormalBinding { value PER_FACE }
86 USE ls
87
88 Translation { translation +5 0 0 }
89 NormalBinding { value PER_FACE_INDEXED }
90 USE ls
91
92 Translation { translation +5 0 0 }
93 NormalBinding { value PER_VERTEX }
94 USE ls
95
96 Translation { translation +5 0 0 }
97 NormalBinding { value PER_VERTEX_INDEXED }
98 USE ls
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 ls
106
107 Translation { translation +5 0 0 }
108 Complexity { type OBJECT_SPACE value 1.0 }
109 USE ls
110
111 Translation { translation +5 0 0 }
112 Complexity { type OBJECT_SPACE value 0.2 }
113 USE ls
114
115 Translation { translation +5 0 0 }
116 Complexity { type OBJECT_SPACE value 0.0 }
117 USE ls
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 ls
126
127 Translation { translation +5 0 0 }
128 LightModel { model PHONG }
129 USE ls
130 }
131
132 # (ROW 4) With different DrawStyle settings.
133 Translation { translation 0 +6 0 }
134 Separator {
135 DrawStyle { style INVISIBLE }
136 USE ls
137
138 Translation { translation +5 0 0 }
139 DrawStyle { style LINES }
140 USE ls
141
142 Translation { translation +5 0 0 }
143 DrawStyle { style LINES lineWidth 1 }
144 USE ls
145
146 Translation { translation +5 0 0 }
147 DrawStyle { style LINES lineWidth 2 }
148 USE ls
149
150 Translation { translation +5 0 0 }
151 DrawStyle { style LINES lineWidth 4 }
152 USE ls
153
154 Translation { translation +5 0 0 }
155 DrawStyle { style LINES lineWidth 2 linePattern 0x0180 }
156 USE ls
157
158 Translation { translation +5 0 0 }
159 DrawStyle { style POINTS }
160 USE ls
161
162 Translation { translation +5 0 0 }
163 DrawStyle { style POINTS pointSize 3 }
164 USE ls
165
166 Translation { translation +5 0 0 }
167 DrawStyle { style FILLED }
168 USE ls
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 ls
177
178 Translation { translation +5 0 0 }
179 ShapeHints { vertexOrdering COUNTERCLOCKWISE }
180 USE ls
181
182 Translation { translation +5 0 0 }
183 ShapeHints { shapeType UNKNOWN_SHAPE_TYPE }
184 USE ls
185
186 Translation { translation +5 0 0 }
187 ShapeHints { shapeType SOLID }
188 USE ls
189
190 Translation { translation +5 0 0 }
191 ShapeHints { faceType UNKNOWN_FACE_TYPE }
192 USE ls
193
194 Translation { translation +5 0 0 }
195 ShapeHints { faceType CONVEX }
196 USE ls
197
198 Translation { translation +5 0 0 }
199 ShapeHints { creaseAngle 0.5 }
200 USE ls
201
202 Translation { translation +5 0 0 }
203 ShapeHints { creaseAngle 1.57 }
204 USE ls
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 ls
223
224 Translation { translation +5 0 0 }
225 TextureCoordinateBinding { value PER_VERTEX }
226 USE ls
227
228 Translation { translation +5 0 0 }
229 TextureCoordinateBinding { value PER_VERTEX_INDEXED }
230 USE ls
231 }
232 }