1 | Shape { |
2 | geometry IndexedFaceSet { |
3 | coordIndex [ 0,4,3,-1, 0,3,2,-1 0,2,1,-1, 0,1,4,-1, 1,3,4,-1, 1,2,3,-1] |
4 | coord Coordinate { |
5 | point [ 0 5 0, -2.5 0 -2.5, 2.5 0 -2.5, 2.5 0 2.5, -2.5 0 2.5] } |
6 | color Color { |
7 | color [ 1 1 0, 0 1 1, 1 0 1, 0 1 0, 0 0 1, 1 1 0, 0 1 1, |
8 | 1 0 1, 1 0 0, 0 1 0, 0 0 1, 1 1 0, 0 1 1, 1 0 1, 1 0 0, 0 1 0, 0 0 1 ] } } |
9 | appearance Appearance { |
10 | material Material { diffuseColor 1 1 0 ambientIntensity 0.1 }} } |
11 | Defines a Simple Colored Pyramid |