<?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 version='3.0' profile='Immersive' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.0.xsd'>
  <head>
    <meta content='Fish.x3d' name='title'/>
    <meta content='One simple Fish with three levels of detail.' name='description'/>
    <meta content='Stewart Liles, Sean Hynes' name='creator'/>
    <meta content='25 September 1998' name='created'/>
    <meta content='26 December 2002' name='modified'/>
    <meta content='http://www.web3d.org/x3d/content/examples/Basic/KelpForestExhibit/KelpForestDesignPaperWeb3dSymposiumFebruary2002.pdf' name='reference'/>
    <meta content='http://www.web3d.org/x3d/content/examples/Basic/KelpForestExhibit/Teaching3d-KelpForestCaseStudy.pdf' name='reference'/>
    <meta content='All content has permissions for free use.  &#10;Please provide credit to the Naval Postgraduate School (NPS)&#10;Modeling Virtual Environments and Simulation (MOVES) Institute.' name='accessRights'/>
    <meta content='brutzman@nps.navy.mil' name='contact'/>
    <meta content='http://www.web3d.org/x3d/content/examples/Basic/KelpForestExhibit/Fish.x3d' name='identifier'/>
    <meta content='X3D-Edit, http://www.web3d.org/x3d/content/README.X3D-Edit.html' name='generator'/>
    <meta name='license' content='../../license.html'/>
  </head>
  <Scene>
    <Switch DEF='TestingViewpoints' whichChoice='-1'>
      <!-- Design switch. Set whichChoice to -1 to hide these Viewpoints, unless you need to see these viewpoints for design purposes. -->
      <Group DEF='TestViewpoints'>
        <Viewpoint description='Fish High Resolution' position='0 0 10'/>
        <Viewpoint description='Fish Med Resolution' position='0 0 35'/>
        <Viewpoint description='Fish Low Resolution' position='0 0 65'/>
        <Viewpoint description='Fish No Resolution' position='0 0 105'/>
      </Group>
    </Switch>
    <!-- Align fish with X axis -->
    <Transform rotation='0 1 0 -1.57'>
      <LOD DEF='FishLOD' range='30 60 100'>
        <!-- Three levels of visible detail, then disappears. -->
        <Group DEF='Near'>
          <!-- High resolution fish. -->
          <Transform DEF='Fish1' scale='0.1 0.1 0.1'>
            <Shape>
              <Appearance DEF='FishAppear'>
                <Material diffuseColor='0.6 0.65 0.7' shininess='0.8'/>
                <ImageTexture DEF='FishJPG' url='"Fish2Patch.jpg"&#10;"http://www.web3d.org/x3d/content/examples/Basic/KelpForestExhibit/Fish2Patch.jpg"'/>
              </Appearance>
              <IndexedFaceSet DEF='FishIndex' ccw='false' coordIndex='0 2 1 -1 0 3&#10;2 -1 0 4 3 -1&#10;0 5 4 -1 0 1&#10;8 -1 0 8 7 -1&#10;0 7 6 -1 0 6&#10;5 -1 1 2 10 9&#10;-1 2 3 11 10 -1&#10;3 4 12 11 -1 4&#10;5 13 12 -1 1 9&#10;16 8 -1 8 16 15&#10;7 -1 7 15 14 6&#10;-1 6 14 13 5 -1&#10;9 10 18 17 -1 10&#10;11 19 18 -1 11 12&#10;20 19 -1 12 13 21&#10;20 -1 9 17 24 16&#10;-1 16 24 23 15 -1&#10;15 23 22 14 -1 14&#10;22 21 13 -1 17 18&#10;26 25 -1 18 19 27&#10;26 -1 19 20 28 27&#10;-1 20 21 29 28 -1&#10;17 25 32 24 -1 24&#10;32 31 23 -1 23 31&#10;30 22 -1 22 30 29&#10;21 -1 25 26 34 33&#10;-1 26 27 35 34 -1&#10;27 28 36 35 -1 28&#10;29 37 36 -1 25 33&#10;40 32 -1 32 40 39&#10;31 -1 31 39 38 30&#10;-1 30 38 37 29 -1&#10;33 34 41 -1 34 35&#10;41 -1 35 42 41 -1&#10;35 43 42 -1 36 43&#10;35 -1 36 37 43 -1&#10;33 41 40 -1 40 41&#10;39 -1 39 41 42 -1&#10;39 42 43 -1 39 43&#10;37 -1 38 43 37 -1' creaseAngle='3.14' solid='false'>
                <Coordinate DEF='Fish' point='0.0 0.0 -1.5&#10;0.0 0.5 -1.0&#10;-0.12 0.25 -1.0&#10;-0.25 0.0 -1.0&#10;-0.12 -0.25 -1.0&#10;0.0 -0.5 -1.0&#10;0.12 -0.25 -1.0&#10;0.25 0.0 -1.0&#10;0.12 0.25 -1.0&#10;0.0 1.0 0.0&#10;-0.25 0.5 0.0&#10;-0.5 0.0 0.0&#10;-0.25 -0.5 0.0&#10;0.0 -1.0 0.0&#10;0.25 -0.5 0.0&#10;0.5 0.0 0.0&#10;0.25 0.5 0.0&#10;0.0 0.88 0.9&#10;-0.19 0.44 0.9&#10;-0.37 0.0 0.9&#10;-0.19 -0.44 0.9&#10;0.0 -0.88 0.9&#10;0.19 -0.44 0.9&#10;0.37 0.0 0.9&#10;0.19 0.44 0.9&#10;0.0 0.75 1.75&#10;-0.12 0.35 1.75&#10;-0.25 0.0 1.75&#10;-0.12 -0.35 1.75&#10;0.0 -0.75 1.75&#10;0.12 -0.35 1.75&#10;0.25 0.0 1.75&#10;0.12 0.35 1.75&#10;0.0 0.5 2.5&#10;-0.05 0.25 2.5&#10;-0.1 0.0 2.5&#10;-0.05 -0.25 2.5&#10;0.0 -0.5 2.5&#10;0.05 -0.25 2.5&#10;0.1 0.0 2.5&#10;0.05 0.25 2.5&#10;0.0 1.25 3.25&#10;0.0 0.0 3.0&#10;0.0 -1.25 3.25'/>
              </IndexedFaceSet>
            </Shape>
          </Transform>
        </Group>
        <Group DEF='Medium'>
          <!-- Medium resolution fish. -->
          <Transform DEF='Fish2' scale='0.1 0.1 0.1'>
            <Shape>
              <Appearance USE='FishAppear'/>
              <IndexedFaceSet ccw='false' coordIndex='0 2 3 -1 0 3&#10;4 -1 0 4 1 -1&#10;0 1 2 -1 1 4&#10;5 -1 2 1 5 -1&#10;3 5 4 -1 3 2&#10;5 -1 5 7 6 -1&#10;5 6 7 -1'>
                <Coordinate point='0.0 0.0 -2.0&#10;0.0 -1.25 0.0&#10;0.5 0.0 0.0&#10;0.0 1.25 0.0&#10;-0.5 0.0 0.0&#10;0.0 0.0 2.25&#10;0.0 1.25 3.0&#10;0.0 -1.25 3.0'/>
              </IndexedFaceSet>
            </Shape>
          </Transform>
        </Group>
        <Group DEF='Far'>
          <!-- Low resolution fish. -->
          <Transform DEF='Fish3' scale='0.1 0.1 0.1'>
            <Shape>
              <Appearance>
                <Material diffuseColor='0.6 0.9 0.9'/>
              </Appearance>
              <IndexedFaceSet ccw='false' coordIndex='0 2 3 -1 0 3&#10;4 -1 0 4 1 -1&#10;0 1 2 -1 1 4&#10;5 -1 2 1 5 -1&#10;3 5 4 -1 3 2&#10;5 -1 5 7 6 -1&#10;5 6 7 -1' creaseAngle='1.57'>
                <Coordinate point='0.0 0.0 -2.0&#10;0.0 -1.25 0.0&#10;0.3 0.0 0.0&#10;0.0 1.25 0.0&#10;-0.3 0.0 0.0&#10;0.0 0.0 2.25&#10;0.0 1.25 3.0&#10;0.0 -1.25 3.0'/>
              </IndexedFaceSet>
            </Shape>
          </Transform>
        </Group>
        <WorldInfo info='null'>
          <!-- Lowest resolution node is nothing. -->
        </WorldInfo>
      </LOD>
    </Transform>
    <TimeSensor DEF='Clock' cycleInterval='2.0' loop='true'/>
    <CoordinateInterpolator DEF='FishWiggle' key='0.0 0.25 0.5 0.75 1.0' keyValue='0.0 0.0 -1.5&#10;0.0 0.5 -1.0&#10;-0.12 0.25 -1.0&#10;-0.25 0.0 -1.0&#10;-0.12 -0.25 -1.0&#10;0.0 -0.5 -1.0&#10;0.12 -0.25 -1.0&#10;0.25 0.0 -1.0&#10;0.12 0.25 -1.0&#10;0.0 1.0 0.0&#10;-0.25 0.5 0.0&#10;-0.5 0.0 0.0&#10;-0.25 -0.5 0.0&#10;0.0 -1.0 0.0&#10;0.25 -0.5 0.0&#10;0.5 0.0 0.0&#10;0.25 0.5 0.0&#10;0.0 0.88 0.9&#10;-0.19 0.44 0.9&#10;-0.37 0.0 0.9&#10;-0.19 -0.44 0.9&#10;0.0 -0.88 0.9&#10;0.19 -0.44 0.9&#10;0.37 0.0 0.9&#10;0.19 0.44 0.9&#10;0.0 0.75 1.75&#10;-0.12 0.35 1.75&#10;-0.25 0.0 1.75&#10;-0.12 -0.35 1.75&#10;0.0 -0.75 1.75&#10;0.12 -0.35 1.75&#10;0.25 0.0 1.75&#10;0.12 0.35 1.75&#10;0.0 0.5 2.5&#10;-0.05 0.25 2.5&#10;-0.1 0.0 2.5&#10;-0.05 -0.25 2.5&#10;0.0 -0.5 2.5&#10;0.05 -0.25 2.5&#10;0.1 0.0 2.5&#10;0.05 0.25 2.5&#10;0.0 1.25 3.25&#10;0.0 0.0 3.0&#10;0.0 -1.25 3.25&#10;0.0 0.0 -1.5&#10;0.0 0.5 -1.0&#10;-0.12 0.25 -1.0&#10;-0.25 0.0 -1.0&#10;-0.12 -0.25 -1.0&#10;0.0 -0.5 -1.0&#10;0.12 -0.25 -1.0&#10;0.25 0.0 -1.0&#10;0.12 0.25 -1.0&#10;0.0 1.0 0.0&#10;-0.25 0.5 0.0&#10;-0.5 0.0 0.0&#10;-0.25 -0.5 0.0&#10;0.0 -1.0 0.0&#10;0.25 -0.5 0.0&#10;0.5 0.0 0.0&#10;0.25 0.5 0.0&#10;0.0 0.88 0.9&#10;-0.19 0.44 0.9&#10;-0.37 0.0 0.9&#10;-0.19 -0.44 0.9&#10;0.0 -0.88 0.9&#10;0.19 -0.44 0.9&#10;0.37 0.0 0.9&#10;0.19 0.44 0.9&#10;0.2 0.75 1.75&#10;0.08 0.35 1.75&#10;-0.05 0.0 1.75&#10;0.08 -0.35 1.75&#10;0.2 -0.75 1.75&#10;0.32 -0.35 1.75&#10;0.45 0.0 1.75&#10;0.32 0.35 1.75&#10;0.3 0.5 2.5&#10;0.25 0.25 2.5&#10;0.15 0.0 2.5&#10;0.25 -0.25 2.5&#10;0.3 -0.5 2.5&#10;0.35 -0.25 2.5&#10;0.4 0.0 2.5&#10;0.35 0.25 2.5&#10;0.5 1.25 3.25&#10;0.5 0.0 3.0&#10;0.5 -1.25 3.25&#10;0.0 0.0 -1.5&#10;0.0 0.5 -1.0&#10;-0.12 0.25 -1.0&#10;-0.25 0.0 -1.0&#10;-0.12 -0.25 -1.0&#10;0.0 -0.5 -1.0&#10;0.12 -0.25 -1.0&#10;0.25 0.0 -1.0&#10;0.12 0.25 -1.0&#10;0.0 1.0 0.0&#10;-0.25 0.5 0.0&#10;-0.5 0.0 0.0&#10;-0.25 -0.5 0.0&#10;0.0 -1.0 0.0&#10;0.25 -0.5 0.0&#10;0.5 0.0 0.0&#10;0.25 0.5 0.0&#10;0.0 0.88 0.9&#10;-0.19 0.44 0.9&#10;-0.37 0.0 0.9&#10;-0.19 -0.44 0.9&#10;0.0 -0.88 0.9&#10;0.19 -0.44 0.9&#10;0.37 0.0 0.9&#10;0.19 0.44 0.9&#10;0.0 0.75 1.75&#10;-0.12 0.35 1.75&#10;-0.25 0.0 1.75&#10;-0.12 -0.35 1.75&#10;0.0 -0.75 1.75&#10;0.12 -0.35 1.75&#10;0.25 0.0 1.75&#10;0.12 0.35 1.75&#10;0.0 0.5 2.5&#10;-0.05 0.25 2.5&#10;-0.1 0.0 2.5&#10;-0.05 -0.25 2.5&#10;0.0 -0.5 2.5&#10;0.05 -0.25 2.5&#10;0.1 0.0 2.5&#10;0.05 0.25 2.5&#10;0.0 1.25 3.25&#10;0.0 0.0 3.0&#10;0.0 -1.25 3.25&#10;0.0 0.0 -1.5&#10;0.0 0.5 -1.0&#10;-0.12 0.25 -1.0&#10;-0.25 0.0 -1.0&#10;-0.12 -0.25 -1.0&#10;0.0 -0.5 -1.0&#10;0.12 -0.25 -1.0&#10;0.25 0.0 -1.0&#10;0.12 0.25 -1.0&#10;0.0 1.0 0.0&#10;-0.25 0.5 0.0&#10;-0.5 0.0 0.0&#10;-0.25 -0.5 0.0&#10;0.0 -1.0 0.0&#10;0.25 -0.5 0.0&#10;0.5 0.0 0.0&#10;0.25 0.5 0.0&#10;0.0 0.88 0.9&#10;-0.19 0.44 0.9&#10;-0.37 0.0 0.9&#10;-0.19 -0.44 0.9&#10;0.0 -0.88 0.9&#10;0.19 -0.44 0.9&#10;0.37 0.0 0.9&#10;0.19 0.44 0.9&#10;-0.2 0.75 1.75&#10;-0.32 0.35 1.75&#10;-0.45 0.0 1.75&#10;-0.32 -0.35 1.75&#10;-0.2 -0.75 1.75&#10;-0.08 -0.35 1.75&#10;0.05 0.0 1.75&#10;-0.08 0.35 1.75&#10;-0.3 0.5 2.5&#10;-0.35 0.25 2.5&#10;-0.4 0.0 2.5&#10;-0.35 -0.25 2.5&#10;-0.3 -0.5 2.5&#10;-0.25 -0.25 2.5&#10;-0.2 0.0 2.5&#10;-0.25 0.25 2.5&#10;-0.5 1.25 3.25&#10;-0.5 0.0 3.0&#10;-0.5 -1.25 3.25&#10;0.0 0.0 -1.5&#10;0.0 0.5 -1.0&#10;-0.12 0.25 -1.0&#10;-0.25 0.0 -1.0&#10;-0.12 -0.25 -1.0&#10;0.0 -0.5 -1.0&#10;0.12 -0.25 -1.0&#10;0.25 0.0 -1.0&#10;0.12 0.25 -1.0&#10;0.0 1.0 0.0&#10;-0.25 0.5 0.0&#10;-0.5 0.0 0.0&#10;-0.25 -0.5 0.0&#10;0.0 -1.0 0.0&#10;0.25 -0.5 0.0&#10;0.5 0.0 0.0&#10;0.25 0.5 0.0&#10;0.0 0.88 0.9&#10;-0.19 0.44 0.9&#10;-0.37 0.0 0.9&#10;-0.19 -0.44 0.9&#10;0.0 -0.88 0.9&#10;0.19 -0.44 0.9&#10;0.37 0.0 0.9&#10;0.19 0.44 0.9&#10;0.0 0.75 1.75&#10;-0.12 0.35 1.75&#10;-0.25 0.0 1.75&#10;-0.12 -0.35 1.75&#10;0.0 -0.75 1.75&#10;0.12 -0.35 1.75&#10;0.25 0.0 1.75&#10;0.12 0.35 1.75&#10;0.0 0.5 2.5&#10;-0.05 0.25 2.5&#10;-0.1 0.0 2.5&#10;-0.05 -0.25 2.5&#10;0.0 -0.5 2.5&#10;0.05 -0.25 2.5&#10;0.1 0.0 2.5&#10;0.05 0.25 2.5&#10;0.0 1.25 3.25&#10;0.0 0.0 3.0&#10;0.0 -1.25 3.25'/>
    <ROUTE fromField='fraction_changed' fromNode='Clock' toField='set_fraction' toNode='FishWiggle'/>
    <ROUTE fromField='value_changed' fromNode='FishWiggle' toField='set_point' toNode='Fish'/>
  </Scene>
</X3D>
