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