Debian Codegraph @

models/oiv_compliance/cube.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check all aspects of SoCube rendering.
4 #
5 # State change nodes which does not influence Cone rendering:
6 # SoNormal, SoNormalBinding, SoShapeHints
7 #
8 # 19990414 mortene
9
10 Separator {
11 # (ROW 0) Check cube on its own.
12 Separator {
13 Cube { }
14
15 Translation { translation +3 0 0 }
16 Cube { width 1 }
17
18 Translation { translation +3 0 0 }
19 Cube { height 1 }
20
21 Translation { translation +3 0 0 }
22 Cube { depth 1 }
23 }
24
25 # (ROW 1) With different LightModel settings.
26 Translation { translation 0 +4 0 }
27 Separator {
28 LightModel { model BASE_COLOR }
29 Cube { }
30
31 Translation { translation +3 0 0 }
32 LightModel { model PHONG }
33 Cube { }
34 }
35
36 # (ROW 2) With different DrawStyle settings.
37 Translation { translation 0 +4 0 }
38 Separator {
39 Translation { translation +3 0 0 }
40 DrawStyle { style INVISIBLE }
41 Cube { }
42
43 Translation { translation +3 0 0 }
44 DrawStyle { style LINES }
45 Cube { }
46
47 Translation { translation +3 0 0 }
48 DrawStyle { style LINES lineWidth 1 }
49 Cube { }
50
51 Translation { translation +3 0 0 }
52 DrawStyle { style LINES lineWidth 2 }
53 Cube { }
54
55 Translation { translation +3 0 0 }
56 DrawStyle { style LINES lineWidth 4 }
57 Cube { }
58
59 Translation { translation +3 0 0 }
60 DrawStyle { style LINES lineWidth 2 linePattern 0x0180 }
61 Cube { }
62
63 Translation { translation +3 0 0 }
64 DrawStyle { style POINTS }
65 Cube { }
66
67 Translation { translation +3 0 0 }
68 DrawStyle { style POINTS pointSize 3 }
69 Cube { }
70
71 Translation { translation +3 0 0 }
72 DrawStyle { style FILLED }
73 Cube { }
74 }
75
76 # (ROW 3) With different MaterialBinding settings.
77 Translation { translation 0 +4 0 }
78 Separator {
79 Material {
80 diffuseColor [
81 1 0 0, 0 1 0, 0 0 1, 1 1 0, 1 0 1, 0 1 1, 1 1 1, 0 0 0
82 ]
83 }
84
85 Cube { }
86
87 Translation { translation +3 0 0 }
88 MaterialBinding { value OVERALL }
89 Cube { }
90
91 Translation { translation +3 0 0 }
92 MaterialBinding { value PER_PART }
93 Cube { }
94
95 Translation { translation +3 0 0 }
96 MaterialBinding { value PER_PART_INDEXED }
97 Cube { }
98
99 Translation { translation +3 0 0 }
100 MaterialBinding { value PER_FACE }
101 Cube { }
102
103 Translation { translation +3 0 0 }
104 MaterialBinding { value PER_FACE_INDEXED }
105 Cube { }
106
107 Translation { translation +3 0 0 }
108 MaterialBinding { value PER_VERTEX }
109 Cube { }
110
111 Translation { translation +3 0 0 }
112 MaterialBinding { value PER_VERTEX_INDEXED }
113 Cube { }
114 }
115
116 # (ROW 4) Test how Cube is affected by Complexity.
117 Translation { translation 0 +4 0 }
118 Separator {
119 Complexity { type BOUNDING_BOX }
120 Cube { }
121
122 Translation { translation +3 0 0 }
123 Complexity { type OBJECT_SPACE value 1.0 }
124 Cube { }
125
126 Translation { translation +3 0 0 }
127 Complexity { type OBJECT_SPACE value 0.8 }
128 Cube { }
129
130 Translation { translation +3 0 0 }
131 Complexity { type OBJECT_SPACE value 0.6 }
132 Cube { }
133
134 Translation { translation +3 0 0 }
135 Complexity { type OBJECT_SPACE value 0.4 }
136 Cube { }
137
138 Translation { translation +3 0 0 }
139 Complexity { type OBJECT_SPACE value 0.2 }
140 Cube { }
141
142 Translation { translation +3 0 0 }
143 Complexity { type OBJECT_SPACE value 0.0 }
144 Cube { }
145 }
146
147 # (ROW 5) Test how Cube is affected by texturemapping.
148 Translation { translation 0 +4 0 }
149 Separator {
150 Texture2 {
151 image 8 6 3
152 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
153 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
154 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
155 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
156 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
157 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
158 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
159 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
160 }
161
162 Cube { }
163 }
164
165 # (ROW 6) Ignore flags on the fields.
166 Translation { translation 0 +4 0 }
167 Separator {
168 Cube { width 12 ~ }
169
170 Translation { translation +3 0 0 }
171 Cube { height 12 ~ }
172
173 Translation { translation +3 0 0 }
174 Cube { depth 12 ~ }
175 }
176 }