Debian Codegraph @

models/oiv_compliance/sphere.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check all aspects of SoSphere rendering.
4 #
5 # State change nodes which does not influence Sphere rendering:
6 # SoMaterialBinding, SoNormal, SoNormalBinding, SoShapeHints
7 #
8 # 19990414 mortene
9
10 Separator {
11 # (ROW 0) Check sphere on its own.
12 Separator {
13 Sphere { }
14
15 Translation { translation +2 0 0 }
16 Sphere { radius 0.5 }
17 }
18
19 # (ROW 1) With different LightModel settings.
20 Translation { translation 0 +4 0 }
21 Separator {
22 LightModel { model BASE_COLOR }
23 Sphere { }
24
25 Translation { translation +2 0 0 }
26 LightModel { model PHONG }
27 Sphere { }
28 }
29
30 # (ROW 2) With different DrawStyle settings.
31 Translation { translation 0 +4 0 }
32 Separator {
33 Translation { translation +2 0 0 }
34 DrawStyle { style INVISIBLE }
35 Sphere { }
36
37 Translation { translation +2 0 0 }
38 DrawStyle { style LINES }
39 Sphere { }
40
41 Translation { translation +2 0 0 }
42 DrawStyle { style LINES lineWidth 1 }
43 Sphere { }
44
45 Translation { translation +2 0 0 }
46 DrawStyle { style LINES lineWidth 2 }
47 Sphere { }
48
49 Translation { translation +2 0 0 }
50 DrawStyle { style LINES lineWidth 4 }
51 Sphere { }
52
53 Translation { translation +2 0 0 }
54 DrawStyle { style LINES lineWidth 2 linePattern 0x0180 }
55 Sphere { }
56
57 Translation { translation +2 0 0 }
58 DrawStyle { style POINTS }
59 Sphere { }
60
61 Translation { translation +2 0 0 }
62 DrawStyle { style POINTS pointSize 3 }
63 Sphere { }
64
65 Translation { translation +2 0 0 }
66 DrawStyle { style FILLED }
67 Sphere { }
68 }
69
70 # (ROW 3) With a material.
71 Translation { translation 0 +4 0 }
72 Separator {
73 Material { diffuseColor [ 1 1 0, 1 0 1, 1 0 0 ] }
74 Sphere { }
75 }
76
77 # (ROW 4) Test how Sphere is affected by Complexity.
78 Translation { translation 0 +4 0 }
79 Separator {
80 Complexity { type BOUNDING_BOX }
81 Sphere { }
82
83 Translation { translation +2 0 0 }
84 Complexity { type OBJECT_SPACE value 1.0 }
85 Sphere { }
86
87 Translation { translation +2 0 0 }
88 Complexity { type OBJECT_SPACE value 0.8 }
89 Sphere { }
90
91 Translation { translation +2 0 0 }
92 Complexity { type OBJECT_SPACE value 0.6 }
93 Sphere { }
94
95 Translation { translation +2 0 0 }
96 Complexity { type OBJECT_SPACE value 0.4 }
97 Sphere { }
98
99 Translation { translation +2 0 0 }
100 Complexity { type OBJECT_SPACE value 0.2 }
101 Sphere { }
102
103 Translation { translation +2 0 0 }
104 Complexity { type OBJECT_SPACE value 0.0 }
105 Sphere { }
106 }
107
108 # (ROW 5) Test how Sphere is affected by texturemapping.
109 Translation { translation 0 +4 0 }
110 Separator {
111 Texture2 {
112 image 8 6 3
113 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
114 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
115 0xff000000 0xff000000 0x00000000 0x00000000 0xff00ff00 0xff00ff00
116 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
117 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
118 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
119 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
120 0xffff0000 0xffff0000 0x00000000 0x00000000 0xffffff00 0xffffff00
121 }
122
123 Sphere { }
124 }
125
126 # (ROW 6) Ignore flags on the fields.
127 Translation { translation 0 +4 0 }
128 Separator {
129 Sphere { radius 0.2 ~ }
130 }
131 }