tut25b.wrl

#VRML V2.0 utf8

WorldInfo {
   title "Floppy's VRML97 Tutorial Example 2.5b"
   info ["(C) Copyright 2000 Vapour Technology Ltd."
         "guide@web3dguide.org.uk"]
}

NavigationInfo {
   headlight FALSE
   type "EXAMINE"
}

DirectionalLight {
   ambientIntensity 0.75
   direction 0 -1 -1
}

Transform {
   translation -5 0 0
   children [
      Shape {
         appearance DEF PYRAMIDAPP Appearance {
            material Material {
               diffuseColor 0 0 1
            }
         }
         geometry IndexedFaceSet {
            coord DEF COORD Coordinate {
               point [ 1 0 -1, -1 0 -1, -1 0 1, 1 0 1, 0 2 0 ]
            }
            coordIndex [
               0 4 3 -1
               1 4 0 -1
               2 4 1 -1
               3 4 2 -1
               0 3 2 1 -1
            ]
         }
      }
   ]
}

Transform {
   children [
      Shape {
         appearance USE PYRAMIDAPP
         geometry IndexedFaceSet {
            coord USE COORD
            coordIndex [
               0 4 3 -1
               1 4 0 -1
               2 4 1 -1
               3 4 2 -1
               0 3 2 1 -1
            ]
            normalPerVertex FALSE
            normal Normal {
               vector [
                  1 0 1, 
                  -1 0 -1, 
                  -1 0 -1, 
                  1 0 1, 
                  0 0 1
               ]
            }
         }
      }
   ]
}

Transform {
   translation 5 0 0
   children [
      Shape {
         appearance USE PYRAMIDAPP
         geometry IndexedFaceSet {
            coord USE COORD
            coordIndex [
               0 4 3 -1
               1 4 0 -1
               2 4 1 -1
               3 4 2 -1
               0 3 2 1 -1
            ]
            normalPerVertex TRUE
            normal Normal {
               vector [
                  1 0 1, 
                  -1 0 -1, 
                  1 0 -1, 
                  -1 0 1, 
                  0 1 0
               ]
            }
         }
      }
   ]
}
Generated by GNU enscript 1.6.1.