| 1 |
#Inventor V2.1 ascii |
| 2 |
|
| 3 |
# Check all aspects of rendering with SoNormalBinding nodes. |
| 4 |
# FIXME: include more SoShape primitives in the check? |
| 5 |
# |
| 6 |
# 19990504 mortene |
| 7 |
|
| 8 |
Separator { |
| 9 |
Switch { |
| 10 |
whichChild -1 |
| 11 |
DEF primitives Separator { |
| 12 |
Cube { } |
| 13 |
Translation { translation +3 0 0 } |
| 14 |
Cone { } |
| 15 |
Translation { translation +3 0 0 } |
| 16 |
Cylinder { } |
| 17 |
Translation { translation +3 0 0 } |
| 18 |
Sphere { } |
| 19 |
Translation { translation +6 0 0 } |
| 20 |
Coordinate3 { |
| 21 |
point [ |
| 22 |
-2 -1 0, -1 -1 0, 1 -1 0, 2 -1 0, |
| 23 |
-2 1 0, -1 1 0, 1 1 0, 2 1 0, |
| 24 |
] |
| 25 |
} |
| 26 |
IndexedFaceSet { |
| 27 |
coordIndex [ 0, 1, 5, 4, -1, 1, 2, 6, 5, -1, 2, 3, 7, 6, -1] |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
Normal { |
| 33 |
vector [ 1 0 0, 0 1 0, 0 0 1, 1 1 0, 1 0 1, 0 1 1, 1 1 1, 1 0 0 ] |
| 34 |
} |
| 35 |
|
| 36 |
# (ROW 0) Test different normalbinding values |
| 37 |
Separator { |
| 38 |
USE primitives |
| 39 |
|
| 40 |
NormalBinding { value PER_VERTEX_INDEXED } |
| 41 |
Translation { translation 0 +3 0 } |
| 42 |
USE primitives |
| 43 |
|
| 44 |
NormalBinding { value PER_VERTEX } |
| 45 |
Translation { translation 0 +3 0 } |
| 46 |
USE primitives |
| 47 |
|
| 48 |
NormalBinding { value PER_FACE_INDEXED } |
| 49 |
Translation { translation 0 +3 0 } |
| 50 |
USE primitives |
| 51 |
|
| 52 |
NormalBinding { value PER_FACE } |
| 53 |
Translation { translation 0 +3 0 } |
| 54 |
USE primitives |
| 55 |
|
| 56 |
NormalBinding { value PER_PART_INDEXED } |
| 57 |
Translation { translation 0 +3 0 } |
| 58 |
USE primitives |
| 59 |
|
| 60 |
NormalBinding { value PER_PART } |
| 61 |
Translation { translation 0 +3 0 } |
| 62 |
USE primitives |
| 63 |
|
| 64 |
NormalBinding { value OVERALL } |
| 65 |
Translation { translation 0 +3 0 } |
| 66 |
USE primitives |
| 67 |
} |
| 68 |
|
| 69 |
# (ROW 1) Check ignored flag |
| 70 |
Translation { translation 0 -6 0 } |
| 71 |
Separator { |
| 72 |
USE primitives |
| 73 |
|
| 74 |
NormalBinding { value PER_VERTEX_INDEXED ~ } |
| 75 |
Translation { translation 0 -3 0 } |
| 76 |
USE primitives |
| 77 |
} |
| 78 |
} |