#VRML V2.0 utf8

# Produced by 3D Studio MAX VRML97 exporter, Version 6, Revision 0.56
# Date: Fri Sep 02 10:43:50 2005

DEF clock Transform {
  translation 5.16 37.02 14.07
  rotation -0.2373 -0.9701 -0.05182 -0.3442
  children [
  DEF clock-TIMER TimeSensor { loop TRUE cycleInterval 3.333 },
    DEF hourHand Transform {
      translation -6.264 0.8857 8.642
      rotation -0.9488 0.0449 -0.3126 -2.871
      children [
          Transform {
            translation 0 45.69 0
            children [
              Shape {
                appearance Appearance {
                  material Material {
                    diffuseColor 0.9686 0.1373 0.02745
                  }
                }
                geometry Cone { bottomRadius 1.076 height 91.37 }
              }
        ] }
      ]
    },
    DEF minuteHand Transform {
      translation -5.934 -1.017 5.678
      rotation -0.7408 0.6142 -0.272 -3.125
      children [
          Transform {
            translation 0 46.48 0
            children [
              Shape {
                appearance Appearance {
                  material Material {
                    diffuseColor 0.102 0.6941 0.102
                  }
                }
                geometry Cone { bottomRadius 2 height 92.96 }
              }
        ] }
      ]
    },
    DEF secondHand Transform {
      translation -5.797 -2.097 5.701
      rotation -0.866 0.3986 -0.3018 -2.915
      children [
          Transform {
            translation 0 46.48 0
            children [
              Shape {
                appearance Appearance {
                  material Material {
                    diffuseColor 0.851 0.9725 0.02745
                  }
                }
                geometry Cone { bottomRadius 1.5 height 92.96 }
              }
        ] }
      ]
    },
    DEF panel Transform {
      translation 2.476 -0.9688 -2.322
      rotation -0.8667 0.4257 -0.2599 -1.403
      children [
          Transform {
            translation 0 3.046 0
            children [
			  DEF TimeSetter TouchSensor { }
              Shape {
                appearance Appearance {
                  material Material {
                    diffuseColor 0.8392 0.898 0.651
                  }
                }
                geometry Cylinder { radius 107.3 height 6.091 }
              }
        ] }
      ]
    }
  ]
}


DEF	runTimer TimeSensor
{
	cycleInterval 1
	startTime 1
	enabled	TRUE
	loop TRUE
}

DEF	SCRIPT Script
{
	eventIn	SFTime get_time
	field SFNode secondHand USE	 secondHand
	field SFNode minuteHand USE	 minuteHand
	field SFNode hourHand   USE	 hourHand
	field SFNode loop_set   USE	 runTimer
	url	"Clock.class"
}

ROUTE TimeSetter.touchTime TO runTimer.startTime
ROUTE runTimer.cycleTime TO	SCRIPT.get_time