<?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 content='SeaDiver.x3d' name='title'/>
    <meta content='Systeme d&apos;Exploration Autonome D&apos;Intervention VERsatile (SeaDiver) is an unmanned underwater vehicle (UUV) based on an underwater-glider concept. Dimensions: 2.8m long x 1.7m wide x 0.6m high. Hint: click on plane surfaces for simple animation.' name='description'/>
    <meta content='Don Brutzman et Didier Leandri' name='creator'/>
    <meta content='17 Avril 2002' name='created'/>
    <meta content='20 October 2019' name='modified'/>
    <meta content='http://www.univ-tln.fr' name='reference'/>
    <meta content='SeaDiverConceptPresentation.ppt' name='reference'/>
    <meta content='SeaDiverIsometricForwardStarboardQuarterView.jpg' name='Image'/>
    <meta content='SeaDiverSideViewPeauQueue.jpg' name='Image'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/Robots/UnmannedUnderwaterVehicles/SeaDiver.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <Background skyColor='0.05 0.1 0.3'/>
    <PointLight DEF='SurfaceLight' color='0.6 0.6 0.6' intensity='0.5' location='0 3 0' radius='8'/>
    <Viewpoint DEF='StarboardView' description='SeaDiver starboard side 5m' position='0 0 5'/>
    <Transform rotation='0 1 0 -1.57' translation='-5 1 0'>
      <Viewpoint description='SeaDiver over-the-shoulder 5m' orientation='1 0 0 -0.25' position='0 0 0'/>
    </Transform>
    <LOD range='1000'>
      <Group>
        <Viewpoint description='SeaDiver from above 100m' orientation='-0.58 -0.58 -0.58 2.09' position='0 100 0'/>
        <Viewpoint description='SeaDiver starboard side 25m' position='0 0 25'/>
        <Viewpoint description='SeaDiver astern 25m' orientation='0 1 0 -1.57' position='-25 0 0'/>
        <Viewpoint description='SeaDiver astern 5m' orientation='0 1 0 -1.57' position='-5 0 0'/>
        <Viewpoint description='SeaDiver port side 25m' orientation='0 1 0 3.14' position='0 0 -25'/>
        <Viewpoint description='SeaDiver port side 5m' orientation='0 1 0 3.14' position='0 0 -5'/>
      </Group>
      <WorldInfo info='"null node outside of LOD range"'/>
    </LOD>
    <!-- This file builds the SeaDiver Unmanned Underwater Vehicle (UUV). -->
    <Transform>
      <!-- Body -->
      <Shape>
        <Extrusion creaseAngle='3.14' crossSection='0.3 0 0.3 -0.7 0.2 -0.8 0 -.85 -0.2 -0.8 -0.3 -0.7 -0.3 0 -0.3 0.7 -0.2 0.8 0 .85 0.2 0.8 0.3 0.7 0.3 0' scale='0.3 0.3 0.6 0.6 0.77 0.77 0.95 0.95 1 1 0.9 0.95 0.7 0.9 0.4 0.86 0.1 0.8' spine='1.3 0 0 1.25 0 0 1.15 0 0 1.0 0 0 0.7 0 0 0.0 0 0 -0.7 0 0 -1.1 0 0 -1.5 0 0'/>
        <Appearance DEF='HullAppearance'>
          <Material ambientIntensity='0.6' diffuseColor='0.94 0.94 1' shininess='0.9' specularColor='0.7 1 0.8'/>
        </Appearance>
      </Shape>
      <!-- Astern diving planes -->
      <Transform translation='-1.5 0 0'>
        <Transform DEF='RotateDivePlanes' center='0.25 0 0'>
          <TouchSensor DEF='TouchDivePlanes' description='waggle dive planes'/>
          <Transform translation='0 0 0.7'>
            <Shape DEF='RightDivePlane'>
              <IndexedFaceSet coordIndex='0 3 2 1 0 -1 4 7 6 5 4 -1 1 2 6 5 -1 2 3 7 6 2 -1 3 0 4 7 3 -1 0 1 5 4 0 -1' creaseAngle='3.14' solid='false'>
                <Coordinate point='0 0.02 0 0.57 0.02 0.06 0.25 0.02 0.25 0 0.02 0.28 0 -0.02 0 0.57 -0.02 0.06 0.25 -0.02 0.25 0 -0.02 0.28'/>
              </IndexedFaceSet>
              <Appearance USE='HullAppearance'/>
            </Shape>
          </Transform>
          <Transform translation='0 0 -0.7'>
            <Shape DEF='LeftDivePlane'>
              <IndexedFaceSet coordIndex='0 3 2 1 0 -1 4 7 6 5 4 -1 1 2 6 5 -1 2 3 7 6 2 -1 3 0 4 7 3 -1 0 1 5 4 0 -1' creaseAngle='3.14' solid='false'>
                <Coordinate point='0 0.02 0 0.57 0.02 -0.06 0.25 0.02 -0.25 0 0.02 -0.28 0 -0.02 0 0.57 -0.02 -0.06 0.25 -0.02 -0.25 0 -0.02 -0.28'/>
              </IndexedFaceSet>
              <Appearance USE='HullAppearance'/>
            </Shape>
          </Transform>
        </Transform>
        <Group DEF='RudderGroup'>
          <TouchSensor DEF='TouchRudders' description='wiggle rudders'/>
          <Transform DEF='OffsetRudderLeft' translation='0 0.05 -0.3'>
            <Transform DEF='RotateRudderLeft' center='0.25 0 0'>
              <Shape DEF='Rudder'>
                <IndexedFaceSet coordIndex='0 3 2 1 0 -1 4 7 6 5 4 -1 1 2 6 5 -1 2 3 7 6 2 -1 3 0 4 7 3 -1 0 1 5 4 0 -1' creaseAngle='3.14' solid='false'>
                  <Coordinate point='0 0 0.02 0.0 0.25 0.02 0.25 0.25 0.02 0.5 0.125 0.02 0 0 -0.02 0.0 0.25 -0.02 0.25 0.25 -0.02 0.5 0.125 -0.02'/>
                </IndexedFaceSet>
                <Appearance USE='HullAppearance'/>
              </Shape>
            </Transform>
          </Transform>
          <Transform DEF='OffsetRudderRight' translation='0 0.05 0.3'>
            <Transform DEF='RotateRudderRight' center='0.25 0 0'>
              <Shape USE='Rudder'/>
            </Transform>
          </Transform>
        </Group>
      </Transform>
      <!-- Astern diving-planes shaft -->
      <Transform rotation='1 0 0 1.57' translation='-1.25 0 0'>
        <Shape>
          <Cylinder bottom='false' height='1.5' radius='0.01' top='false'/>
          <Appearance USE='HullAppearance'/>
        </Shape>
      </Transform>
    </Transform>
    <!-- Example animation for dive planes -->
    <TimeSensor DEF='WiggleClock' cycleInterval='4'/>
    <ROUTE fromField='touchTime' fromNode='TouchDivePlanes' toField='set_startTime' toNode='WiggleClock'/>
    <OrientationInterpolator DEF='PlaneWiggler' key='0 0.25 0.75 1' keyValue='0 0 1 0 0 0 1 0.15 0 0 1 -0.15 0 0 1 0'/>
    <ROUTE fromField='fraction_changed' fromNode='WiggleClock' toField='set_fraction' toNode='PlaneWiggler'/>
    <ROUTE fromField='value_changed' fromNode='PlaneWiggler' toField='set_rotation' toNode='RotateDivePlanes'/>
    <!-- Example animation for rudders -->
    <TimeSensor DEF='WaggleClock' cycleInterval='4'/>
    <ROUTE fromField='touchTime' fromNode='TouchRudders' toField='set_startTime' toNode='WaggleClock'/>
    <OrientationInterpolator DEF='RudderWaggler' key='0 0.25 0.75 1' keyValue='0 1 0 0 0 1 0 0.15 0 1 0 -0.15 0 1 0 0'/>
    <ROUTE fromField='fraction_changed' fromNode='WaggleClock' toField='set_fraction' toNode='RudderWaggler'/>
    <ROUTE fromField='value_changed' fromNode='RudderWaggler' toField='set_rotation' toNode='RotateRudderLeft'/>
    <ROUTE fromField='value_changed' fromNode='RudderWaggler' toField='set_rotation' toNode='RotateRudderRight'/>
  </Scene>
</X3D>