<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://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 =' https://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='Fence.x3d'/>
<meta name='descriptioncontent='This file draws the fence and door with lawn.'/>
<meta name='creatorcontent='Kok Keng Ng'/>
<meta name='createdcontent='20 September 2002'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/Buildings/PlayGround/Fence.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='Fence.x3d'/>
<Transform DEF='FENCEBACKTXtranslation='0 0 -8.75'>
<Group DEF='FENCEGP5'>
<Group DEF='FENCE1GP'>
<Transform translation='0 -0.5 0'>
<Shape DEF='FENCEbar'>
<Box size='2.5 0.1 0.1'/>
<Appearance DEF='FENCEApp'>
<Material diffuseColor='0.8 0.5 0'/>
<ImageTexture DEF='wood'
  url=' "wood.jpg" "https://savage.nps.edu/Savage/Buildings/PlayGround/wood.jpg" '/>
</Appearance>
</Shape>
</Transform>
<Transform translation='0 -0.25 0'>
<Shape USE='FENCEbar'/>
</Transform>
<Transform>
<Shape USE='FENCEbar'/>
</Transform>
<Transform translation='0 0.25 0'>
<Shape USE='FENCEbar'/>
</Transform>
<Transform rotation='0 0 1 1.57translation='1.25 -.20 0'>
<Shape DEF='FENCEleg'>
<Box size='1.3 0.15 0.15'/>
<Appearance>
<Material diffuseColor='0.8 0.5 0'/>
<ImageTexture USE='wood'/>
</Appearance>
</Shape>
</Transform>
<Transform rotation='0 0 1 1.57translation='-1.25 -0.20 0'>
<Shape USE='FENCEleg'/>
</Transform>
</Group>
<Transform translation='2.5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='-2.5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='7.5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='-5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='-7.5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
</Group>
</Transform>
<Transform DEF='FENCERIGHTTXrotation='0 1 0 1.57translation='8.75 0 0'>
<Group USE='FENCEGP5'/>
</Transform>
<Transform DEF='FENCELEFTTXrotation='0 1 0 1.57translation='-8.75 0 0'>
<Group USE='FENCEGP5'/>
</Transform>
<Transform DEF='FENCEFRONTTXtranslation='0 0 8.75'>
<Group>
<Transform translation='-2.5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='2.5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='-5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='-7.5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
<Transform translation='7.5 0 0'>
<Group USE='FENCE1GP'/>
</Transform>
</Group>
<!-- ROUTE information for FENCERightDoorTX node:  [from FENCERightDoorInterpolator.value_changed to set_rotation ] -->
<Transform DEF='FENCERightDoorTXcenter='0.6 0 0.05translation='0.575 0 0.025'>
<Group DEF='FENCERightDoorGP'>
<Group DEF='FENCEDoor1'>
<Transform translation='0. -0.5 0'>
<Shape DEF='FENCEDoorbarShape'>
<Box size='1 0.075 0.075'/>
<Appearance USE='FENCEApp'/>
</Shape>
</Transform>
<Transform DEF='FENCEDOORRIGHTLEGTXrotation='0 0 1 1.57translation='0.55 -.20 0'>
<Shape DEF='FENCEDoorlegShape'>
<Box size='1.2 0.1 0.1'/>
<Appearance USE='FENCEApp'/>
</Shape>
</Transform>
<Transform translation='0 -0.2 0'>
<Shape USE='FENCEDoorbarShape'/>
</Transform>
<Transform translation='0 0.1 0'>
<Shape USE='FENCEDoorbarShape'/>
</Transform>
<Transform translation='0 0.35 0'>
<Shape USE='FENCEDoorbarShape'/>
</Transform>
<Transform DEF='FENCEDOORLEFTLEGTXrotation='0 0 1 1.57translation='-0.5 -.20 0'>
<Shape USE='FENCEDoorlegShape'/>
</Transform>
</Group>
<Group>
<Transform rotation='0 0 1 0.785scale='1.2 1 1translation='0.05 -0.1 -0.05'>
<Shape USE='FENCEDoorbarShape'/>
</Transform>
</Group>
<!-- ROUTE information for FENCERightDoorSensor node:  [from touchTime to FENCEDoorTimer2.set_startTime ] [from touchTime to DoorSound.set_startTime ] -->
<TouchSensor DEF='FENCERightDoorSensor'/>
</Group>
</Transform>
<Transform>
<Group DEF='FENCELeftDoorGP'>
<!-- ROUTE information for FENCELeftDoorTX node:  [from FENCELeftDoorInterpolator.value_changed to set_rotation ] -->
<Transform DEF='FENCELeftDoorTXcenter='-0.55 0 0.05translation='-0.625 0 0.025'>
<Group USE='FENCEDoor1'/>
<Group>
<Transform rotation='0 0 1 -0.785scale='1.2 1 1translation='-0.05 -0.1 -0.05'>
<Shape USE='FENCEDoorbarShape'/>
</Transform>
</Group>
<!-- ROUTE information for FENCELeftDoorSensor node:  [from touchTime to FENCEDoorTimer1.set_startTime ] [from touchTime to DoorSound.set_startTime ] -->
<TouchSensor DEF='FENCELeftDoorSensor'/>
</Transform>
</Group>
</Transform>
<!-- ROUTE information for FENCEDoorTimer1 node:  [from FENCELeftDoorSensor.touchTime to set_startTime ] [from fraction_changed to FENCELeftDoorInterpolator.set_fraction ] -->
<TimeSensor DEF='FENCEDoorTimer1cycleInterval='12'/>
<!-- ROUTE information for FENCEDoorTimer2 node:  [from FENCERightDoorSensor.touchTime to set_startTime ] [from fraction_changed to FENCERightDoorInterpolator.set_fraction ] -->
<TimeSensor DEF='FENCEDoorTimer2cycleInterval='15'/>
<!-- ROUTE information for FENCELeftDoorInterpolator node:  [from FENCEDoorTimer1.fraction_changed to set_fraction ] [from value_changed to FENCELeftDoorTX.set_rotation ] -->
<OrientationInterpolator DEF='FENCELeftDoorInterpolatorkey='0 0.25 0.75 1keyValue='0 1 0 0 0 1 0 -1.57 0 1 0 -1.57 0 1 0 0'/>
<!-- ROUTE information for FENCERightDoorInterpolator node:  [from FENCEDoorTimer2.fraction_changed to set_fraction ] [from value_changed to FENCERightDoorTX.set_rotation ] -->
<OrientationInterpolator DEF='FENCERightDoorInterpolatorkey='0 0.25 0.75 1keyValue='0 1 0 0.0 0 1 0 1.57 0 1 0 1.57 0 1 0 -0'/>
</Transform>
<Transform>
<Transform>
<Transform DEF='LAWNtranslation='0 -0.8 0'>
<Transform scale='4 1 4translation='-14 0.01 -14'>
<Shape>
<Appearance>
<ImageTexture
  url=' "grass1.jpg" "https://savage.nps.edu/Savage/Buildings/PlayGround/grass1.jpg" '/>

<TextureTransform scale='120 120'/>
</Appearance>
<ElevationGrid creaseAngle='0.785xDimension='8xSpacing='1.zDimension='8zSpacing='1.height='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/>
</Shape>
</Transform>
</Transform>
<Transform DEF='FLOORTXtranslation='0 -0.876 0'>
<Shape DEF='FLOOR'>
<Box size='28 0.15 28'/>
<Appearance>
<Material ambientIntensity='0.245763diffuseColor='0.336312 0.24807 0.201129shininess='0.061224specularColor='0.108805 0.098067 0.096807'/>
</Appearance>
</Shape>
</Transform>
</Transform>
</Transform>
<Transform>
<Sound direction='1 1 1maxBack='100maxFront='100minBack='10minFront='10'>
<!-- ROUTE information for DoorSound node:  [from FENCELeftDoorSensor.touchTime to set_startTime ] [from FENCERightDoorSensor.touchTime to set_startTime ] -->
<AudioClip DEF='DoorSounddescription='Door sound'
  url=' "Door.wav" "https://savage.nps.edu/Savage/Buildings/PlayGround/Door.wav" '/>
</Sound>
</Transform>
<Transform/>
<Viewpoint description='Frontorientation='1 0 0 -0.3position='0 2 20'/>
<Viewpoint description='MainDoororientation='1 0 0 -1.57position='0 3 8.75'/>
<ROUTE fromNode='FENCELeftDoorSensorfromField='touchTimetoNode='FENCEDoorTimer1toField='set_startTime'/>
<ROUTE fromNode='FENCEDoorTimer1fromField='fraction_changedtoNode='FENCELeftDoorInterpolatortoField='set_fraction'/>
<ROUTE fromNode='FENCELeftDoorInterpolatorfromField='value_changedtoNode='FENCELeftDoorTXtoField='set_rotation'/>
<ROUTE fromNode='FENCERightDoorSensorfromField='touchTimetoNode='FENCEDoorTimer2toField='set_startTime'/>
<ROUTE fromNode='FENCEDoorTimer2fromField='fraction_changedtoNode='FENCERightDoorInterpolatortoField='set_fraction'/>
<ROUTE fromNode='FENCERightDoorInterpolatorfromField='value_changedtoNode='FENCERightDoorTXtoField='set_rotation'/>
<ROUTE fromNode='FENCELeftDoorSensorfromField='touchTimetoNode='DoorSoundtoField='set_startTime'/>
<ROUTE fromNode='FENCERightDoorSensorfromField='touchTimetoNode='DoorSoundtoField='set_startTime'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : DoorSound, FENCE1GP, FENCEApp, FENCEBACKTX, FENCEbar, FENCEDoor1, FENCEDoorbarShape, FENCEDOORLEFTLEGTX, FENCEDoorlegShape, FENCEDOORRIGHTLEGTX, FENCEDoorTimer1, FENCEDoorTimer2, FENCEFRONTTX, FENCEGP5, FENCELeftDoorGP, FENCELeftDoorInterpolator, FENCELeftDoorSensor, FENCELeftDoorTX, FENCELEFTTX, FENCEleg, FENCERightDoorGP, FENCERightDoorInterpolator, FENCERightDoorSensor, FENCERightDoorTX, FENCERIGHTTX, FLOOR, FLOORTX, LAWN, wood

Index for Viewpoint images : Viewpoint_1, Viewpoint_2
-->

<!-- 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)
-->

<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints. -->