tut11a.wrl

#VRML V2.0 utf8

WorldInfo {
   title "Floppy's VRML97 Tutorial Example 11a"
   info ["(C) Copyright 1999 Vapour Technology"
         "vrmlguide@vapourtech.com"]
}

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 1 0 0
            }
         }
         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
            ]
            creaseAngle 2
         }
      }
   ]
}

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
            ]
            creaseAngle 3
         }
      }
   ]
}

Generated by GNU enscript 1.6.1.

© Copyright 1999 Vapour Technology - vrmlguide@vapourtech.com - http://www.vapourtech.com/vrmlguide