<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='WallClock.x3d'/>
<meta name='descriptioncontent='A file describing a wall clock'/>
<meta name='creatorcontent='Frederic Roussille'/>
<meta name='createdcontent='1 April 2001'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/WallClock.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='WallClock.x3d'/>
<Group>
<Shape>
<Appearance>
<Material DEF='bluediffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Extrusion beginCap='falsecreaseAngle='1crossSection='0 0 4 0 4 0.7 3.6 0.7 3.6 0.2 0 0.2endCap='falsespine='1 0 0 0.92 -0.38 0 0.71 -0.71 0 0.38 -0.92 0 0 -1 0 -0.38 -0.92 0 -0.71 -0.71 0 -0.92 -0.38 0 -1 0 0 -0.92 0.38 0 -0.71 0.71 0 -0.38 0.92 0 0 1 0 0.38 0.92 0 0.71 0.71 0 0.92 0.38 0 1 0 0'/>
</Shape>
<Transform rotation='1 0 0 1.57translation='0 0 0.2'>
<Shape>
<Cylinder height='0.2radius='2.8'/>
</Shape>
</Transform>
<Group>
<Transform center='0 0 0.4rotation='0 0 1 -0.5233'>
<Transform DEF='mark1translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m1 node:  [from cm1p.value_changed to set_diffuseColor ] -->
<Material DEF='m1diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -1.0466'>
<Transform DEF='mark2translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m2 node:  [from cm2p.value_changed to set_diffuseColor ] -->
<Material DEF='m2diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -1.57'>
<Transform DEF='mark3translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m3 node:  [from cm3p.value_changed to set_diffuseColor ] -->
<Material DEF='m3diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -2.0933'>
<Transform DEF='mark4translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m4 node:  [from cm4p.value_changed to set_diffuseColor ] -->
<Material DEF='m4diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -2.6166'>
<Transform DEF='mark5translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m5 node:  [from cm5p.value_changed to set_diffuseColor ] -->
<Material DEF='m5diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -3.1399'>
<Transform DEF='mark6translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m6 node:  [from cm6p.value_changed to set_diffuseColor ] -->
<Material DEF='m6diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -3.6632'>
<Transform DEF='mark7translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m7 node:  [from cm7p.value_changed to set_diffuseColor ] -->
<Material DEF='m7diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -4.1865'>
<Transform DEF='mark8translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m8 node:  [from cm8p.value_changed to set_diffuseColor ] -->
<Material DEF='m8diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -4.7098'>
<Transform DEF='mark9translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m9 node:  [from cm9p.value_changed to set_diffuseColor ] -->
<Material DEF='m9diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -5.2331'>
<Transform DEF='mark10translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m10 node:  [from cm10p.value_changed to set_diffuseColor ] -->
<Material DEF='m10diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -5.7564'>
<Transform DEF='mark11translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m11 node:  [from cm11p.value_changed to set_diffuseColor ] -->
<Material DEF='m11diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
<Transform center='0 0 0.4rotation='0 0 1 -6.2797'>
<Transform DEF='mark12translation='0 2.2 0.4'>
<Shape>
<Appearance>
<!-- ROUTE information for m12 node:  [from cm12p.value_changed to set_diffuseColor ] -->
<Material DEF='m12diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<Box size='0.25 0.5 0.15'/>
</Shape>
</Transform>
</Transform>
</Group>
<!-- ROUTE information for small node:  [from more_time.hour_changed to set_rotation ] -->
<Transform DEF='smallcenter='0 0 0.4'>
<Transform rotation='1 0 0 -1.57translation='0 0 0.5'>
<Shape>
<Appearance>
<Material USE='blue'/>
</Appearance>
<Extrusion crossSection='-0.15 0 0.15 0 0 1.4 -0.15 0spine='0 0 0 0 0.15 0'/>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for medium node:  [from more_time.minute_changed to set_rotation ] -->
<Transform DEF='mediumcenter='0 0 0.4'>
<Transform rotation='1 0 0 -1.57translation='0 0 0.5'>
<Shape>
<Appearance>
<Material USE='blue'/>
</Appearance>
<Extrusion crossSection='-0.11 0 0.15 0 0 1.65 -0.11 0spine='0 0 0 0 0.15 0'/>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for tall node:  [from more_time.second_changed to set_rotation ] -->
<Transform DEF='tallcenter='0 0 0.4'>
<Transform translation='0 0 0.4'>
<Shape>
<Appearance>
<Material USE='blue'/>
</Appearance>
<IndexedLineSet coordIndex='0 1 -1'>
<Coordinate point='0 0 0 0 1.8 0'/>
</IndexedLineSet>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for cm node:  [from cm_enabled.start to set_enabled ] [from fraction_changed to cm1p.set_fraction ] [from fraction_changed to cm2p.set_fraction ] [from fraction_changed to cm3p.set_fraction ] [from fraction_changed to cm4p.set_fraction ] [from fraction_changed to cm5p.set_fraction ] [from fraction_changed to cm6p.set_fraction ] [from fraction_changed to cm7p.set_fraction ] [from fraction_changed to cm8p.set_fraction ] [from fraction_changed to cm9p.set_fraction ] [from fraction_changed to cm10p.set_fraction ] [from fraction_changed to cm12p.set_fraction ] [from fraction_changed to cm11p.set_fraction ] -->
<TimeSensor DEF='cmenabled='falseloop='true'/>
<!-- ROUTE information for refresh node:  [from cycleTime to cm_enabled.set_milli ] [from cycleTime to more_time.set_second ] [from cycleTime to writing.set_float ] -->
<TimeSensor DEF='refreshcycleInterval='0.1loop='true'/>
<!-- ROUTE information for cm1p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m1.set_diffuseColor ] -->
<ColorInterpolator DEF='cm1pkey='0 0.0833 0.0833 0.167 0.167 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm2p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m2.set_diffuseColor ] -->
<ColorInterpolator DEF='cm2pkey='0 0.167 0.167 0.25 0.25 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm3p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m3.set_diffuseColor ] -->
<ColorInterpolator DEF='cm3pkey='0 0.25 0.25 0.333 0.333 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm4p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m4.set_diffuseColor ] -->
<ColorInterpolator DEF='cm4pkey='0 0.333 0.333 0.417 0.417 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm5p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m5.set_diffuseColor ] -->
<ColorInterpolator DEF='cm5pkey='0 0.417 0.417 0.5 0.5 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm6p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m6.set_diffuseColor ] -->
<ColorInterpolator DEF='cm6pkey='0 0.5 0.5 0.583 0.583 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm7p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m7.set_diffuseColor ] -->
<ColorInterpolator DEF='cm7pkey='0 0.583 0.583 0.667 0.667 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm8p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m8.set_diffuseColor ] -->
<ColorInterpolator DEF='cm8pkey='0 0.667 0.667 0.75 0.75 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm9p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m9.set_diffuseColor ] -->
<ColorInterpolator DEF='cm9pkey='0 0.75 0.75 0.833 0.833 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm10p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m10.set_diffuseColor ] -->
<ColorInterpolator DEF='cm10pkey='0 0.833 0.833 0.917 0.917 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for cm11p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m11.set_diffuseColor ] -->
<ColorInterpolator DEF='cm11pkey='0 0.917 0.917 1 1keyValue='0.3 0.2 0.8 0.3 0.2 0.8 1 1 0 1 1 0 0.3 0.2 0.8'/>
<!-- ROUTE information for cm12p node:  [from cm.fraction_changed to set_fraction ] [from value_changed to m12.set_diffuseColor ] -->
<ColorInterpolator DEF='cm12pkey='0 0.0833 0.0833 1keyValue='1 1 0 1 1 0 0.3 0.2 0.8 0.3 0.2 0.8'/>
<!-- ROUTE information for writing node:  [from refresh.cycleTime to set_float ] [from string_changed to text.set_string ] -->
<Script DEF='writing'>
<field name='set_floattype='SFTimeaccessType='inputOnly'/>
<field name='string_changedtype='MFStringaccessType='outputOnly'/>
<field name='gtype='SFFloatvalue='0accessType='initializeOnly'/>
<![CDATA[
        
ecmascript:
function set_float () {
 var today = new Date();
 var date = today.toLocaleString();
 string_changed[0]= date;
}

      
]]>
</Script>
<Transform translation='0 1.2 0.3'>
<Shape>
<Appearance>
<Material diffuseColor='0.3 0.2 0.8'/>
</Appearance>
<!-- ROUTE information for text node:  [from writing.string_changed to set_string ] -->
<Text DEF='text'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='0.3'/>
</Text>
</Shape>
</Transform>
<!-- ROUTE information for more_time node:  [from refresh.cycleTime to set_second ] [from second_changed to tall.set_rotation ] [from minute_changed to medium.set_rotation ] [from hour_changed to small.set_rotation ] -->
<Script DEF='more_time'>
<field name='second_changedtype='SFRotationaccessType='outputOnly'/>
<field name='set_secondtype='SFTimeaccessType='inputOnly'/>
<field name='minute_changedtype='SFRotationaccessType='outputOnly'/>
<field name='hour_changedtype='SFRotationaccessType='outputOnly'/>
<![CDATA[
        
ecmascript:
function initialize(){
}


function set_second () {
 var today = new Date();
 var seconds = today.getSeconds();
 var minutes =  -(Math.PI/30)*today.getMinutes();
 var hours = -(Math.PI/6)*today.getHours();
 second_changed[3] = -(Math.PI/30)*seconds ;
 minute_changed[3]= minutes -(Math.PI/30)*seconds/60; 
 hour_changed[3]= hours -(Math.PI/6)*today.getMinutes()/60;
}

      
]]>
</Script>
<!-- ROUTE information for cm_enabled node:  [from refresh.cycleTime to set_milli ] [from start to cm.set_enabled ] -->
<Script DEF='cm_enabled'>
<field name='starttype='SFBoolaccessType='outputOnly'/>
<field name='set_millitype='SFTimeaccessType='inputOnly'/>
<![CDATA[
        
ecmascript:
function set_milli () {
 var today = new Date();
 var milli = today.getTime();
 var milli_changed= (milli/1000) - Math.floor(milli/1000);
 Browser.print (milli_changed);
 if (milli_changed>0 && milli_changed<0.1) {start=true;}
}

      
]]>
</Script>
</Group>
<ROUTE fromNode='refreshfromField='cycleTimetoNode='cm_enabledtoField='set_milli'/>
<ROUTE fromNode='cm_enabledfromField='starttoNode='cmtoField='set_enabled'/>
<ROUTE fromNode='refreshfromField='cycleTimetoNode='more_timetoField='set_second'/>
<ROUTE fromNode='more_timefromField='second_changedtoNode='talltoField='set_rotation'/>
<ROUTE fromNode='more_timefromField='minute_changedtoNode='mediumtoField='set_rotation'/>
<ROUTE fromNode='more_timefromField='hour_changedtoNode='smalltoField='set_rotation'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm1ptoField='set_fraction'/>
<ROUTE fromNode='cm1pfromField='value_changedtoNode='m1toField='set_diffuseColor'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm2ptoField='set_fraction'/>
<ROUTE fromNode='cm2pfromField='value_changedtoNode='m2toField='set_diffuseColor'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm3ptoField='set_fraction'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm4ptoField='set_fraction'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm5ptoField='set_fraction'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm6ptoField='set_fraction'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm7ptoField='set_fraction'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm8ptoField='set_fraction'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm9ptoField='set_fraction'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm10ptoField='set_fraction'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm12ptoField='set_fraction'/>
<ROUTE fromNode='cm3pfromField='value_changedtoNode='m3toField='set_diffuseColor'/>
<ROUTE fromNode='cm4pfromField='value_changedtoNode='m4toField='set_diffuseColor'/>
<ROUTE fromNode='cm5pfromField='value_changedtoNode='m5toField='set_diffuseColor'/>
<ROUTE fromNode='cm6pfromField='value_changedtoNode='m6toField='set_diffuseColor'/>
<ROUTE fromNode='cm7pfromField='value_changedtoNode='m7toField='set_diffuseColor'/>
<ROUTE fromNode='cm8pfromField='value_changedtoNode='m8toField='set_diffuseColor'/>
<ROUTE fromNode='cm9pfromField='value_changedtoNode='m9toField='set_diffuseColor'/>
<ROUTE fromNode='cm10pfromField='value_changedtoNode='m10toField='set_diffuseColor'/>
<ROUTE fromNode='cm12pfromField='value_changedtoNode='m12toField='set_diffuseColor'/>
<ROUTE fromNode='cmfromField='fraction_changedtoNode='cm11ptoField='set_fraction'/>
<ROUTE fromNode='cm11pfromField='value_changedtoNode='m11toField='set_diffuseColor'/>
<ROUTE fromNode='refreshfromField='cycleTimetoNode='writingtoField='set_float'/>
<ROUTE fromNode='writingfromField='string_changedtoNode='texttoField='set_string'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : blue, cm, cm_enabled, cm10p, cm11p, cm12p, cm1p, cm2p, cm3p, cm4p, cm5p, cm6p, cm7p, cm8p, cm9p, m1, m10, m11, m12, m2, m3, m4, m5, m6, m7, m8, m9, mark1, mark10, mark11, mark12, mark2, mark3, mark4, mark5, mark6, mark7, mark8, mark9, medium, more_time, refresh, small, tall, text, writing
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->