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