#VRML V2.0 utf8

## light ##
PointLight {
  ambientIntensity 0.01
  color 0.5  0.5  0.5
  location 300.0   30.0  -315.0
}

## exit ##
Transform {
  children [
    Shape {
      appearance Appearance {
            material Material {
              diffuseColor 0.1 0.1 1.0
              emissiveColor 0.0 0.0 0.8
              specularColor 0.0 0.0 0.3
            }
      }
      geometry Text {
        string "EXIT"
        fontStyle FontStyle {
          family "SERIF"
          style "BOLD"
          size 6.0
          horizontal TRUE
        }
      }
    }
  ]
  rotation 0.0 1.0 0.0 -1.571
  translation 349.0 22.0 -345.0
}
Transform {
  children [
    Shape {
      appearance Appearance {
            material Material {
              diffuseColor 1. 0.1 0.1
              emissiveColor 0.0 0.0 0.8
              specularColor 0.0 0.0 0.3
            }
      }
      geometry Text {
        string "Under Construction"
        fontStyle FontStyle {
          family "SERIF"
          style "BOLD"
          size 6.0
          horizontal TRUE
        }
      }
    }
  ]
  rotation 0.0 1.0 0.0 -1.571
  translation 349.0 15.0 -310.0
}

## room ##
Shape {
  appearance Appearance {
    texture ImageTexture {
      url "./texture1.jpg"
    }
    material Material { }
  }
  geometry IndexedFaceSet {
    solid FALSE
    coord Coordinate {
      point [
        250.0  -10.0  -265.0,
        250.0  -10.0  -365.0,
        350.0  -10.0  -365.0,
        350.0  -10.0  -265.0,
        250.0   30.0  -265.0,
        250.0   30.0  -365.0,
        350.0   30.0  -365.0,
        350.0   30.0  -265.0,
        250.0  -10.0  -275.0,
        250.0   20.0  -275.0,
        250.0   30.0  -275.0,
        250.0  -10.0  -305.0,
        250.0   20.0  -305.0,
        250.0   30.0  -305.0,
        350.0  -10.0  -325.0,
        350.0   20.0  -325.0,
        350.0   30.0  -325.0,
        350.0  -10.0  -355.0,
        350.0   20.0  -355.0,
        350.0   30.0  -355.0        
      ]
    }
    coordIndex [
      0,1,2,3,0,-1,
      0,8,10,4,0,-1,
      9,12,13,10,9,-1,
      11,1,5,13,11,-1,
      1,2,6,5,1,-1,
      2,17,19,6,2,-1,
      15,18,19,16,15,-1,
      14,3,7,16,14,-1,
      0,3,7,4,0,-1,
      4,5,6,7,4,-1
    ]
  }
}

## molecule 1 ##
DEF molecule1 Transform {
  children Inline { url "./pigsolidgz.wrl" }
  translation 300.0 -3.0 -315.0
  scale 0.03 0.03 0.03
}
DEF timer TimeSensor {
  cycleInterval 5.0
  loop TRUE
}
DEF Interpolator OrientationInterpolator {
  key [ 0.0, 0.5, 1.0 ]
  keyValue [
    0.0  1.0  0.0  0.00,
    0.0  1.0  0.0  3.14,
    0.0  1.0  0.0  6.28
  ]
}
ROUTE timer.fraction_changed TO Interpolator.set_fraction
ROUTE Interpolator.value_changed TO molecule1.set_rotation

Transform {
          children Inline { url "./post4.wrl" }
           scale 3 3 3
     	     translation 295.0 6.0 -280.0

        }


## glass cupboard ##
Transform {
  children [
    Shape {
      appearance Appearance {
        material Material {
          diffuseColor 0.5 0.5 0.1
          emissiveColor 0.3 0.3 0.0
        }
      }
      geometry Cylinder {
        radius 7.0
        height 5.0
      }
    }
  ]
  translation 300.0 -7.5 -315.0
}
Transform {
  children [
    Shape {
      appearance Appearance {
        material Material {
          transparency 0.8
        }
      }
      geometry Cylinder {
        radius 7.0
        height 10.0
      }
    }
  ]
  translation 300.0 0.0 -315.0
}
Transform {
  children [
    Shape {
      appearance Appearance {
        material Material {
          diffuseColor 0.5 0.5 0.1
          emissiveColor 0.3 0.3 0.0
        }
      }
      geometry Cylinder {
        radius 7.0
        height 5.0
      }
    }
  ]
  translation 300.0 7.5 -315.0
}

