<?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>
    <component level='3' name='Interpolation'/>
    <meta content='Skirt.x3d' name='title'/>
    <meta content='Animated Skirt for LCAC which animates using a Vector2FloatArray Interpolator - click geometry to activate animation loop.' name='description'/>
    <meta content='Jeff Weekley, Don Brutzman and Jane Wu' name='creator'/>
    <meta content='15 July 2001' name='created'/>
    <meta content='20 October 2019' name='modified'/>
    <meta content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/concepts.html#4.6.8' name='reference'/>
    <meta content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#CoordinateInterpolator' name='reference'/>
    <meta content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#Extrusion' name='reference'/>
    <meta content='Skirt' name='subject'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/Skirt.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>
    <WorldInfo title='Skirt.x3d'/>
    <Background skyColor='0.25 0.4 0.85'/>
    <!-- ====================================== -->
    <Viewpoint description='Click to inflate/deflate skirt' orientation='1 0 0 0.5' position='15 -15 30'/>
    <TimeSensor DEF='Clock' cycleInterval='5' enabled='false' loop='true'/>
    <CoordinateInterpolator2D DEF='InterpolateCrossSection' key='0 0.4 0.5 0.9 1' keyValue='0 2 -0.05 1.8 -0.05 1.6 -0.0625 1.4 -0.1 1.2 -0.125 1 -0.2 0.8 -0.25 0.6 -0.2625 0.4 -0.275 0.3 -0.225 0.2 -0.15 0.1 -0.075 0.05 0 0 0 0 0 2 -0.2 2 -1.2 1 -1.2 0.9 -1.3 0.85 -1.4 0.8 -1.5 0.7 -1.55 0.5 -1.6 0.4 -1.55 0.2 -1.475 0.1 -1.39 0 0 0 0 0 0 2 -0.2 2 -1.2 1 -1.2 0.9 -1.3 0.85 -1.4 0.8 -1.5 0.7 -1.55 0.5 -1.6 0.4 -1.55 0.2 -1.475 0.1 -1.39 0 0 0 0 2 -0.05 1.8 -0.05 1.6 -0.0625 1.4 -0.1 1.2 -0.125 1 -0.2 0.8 -0.25 0.6 -0.2625 0.4 -0.275 0.3 -0.225 0.2 -0.15 0.1 -0.075 0.05 0 0 0 2 -0.05 1.8 -0.05 1.6 -0.0625 1.4 -0.1 1.2 -0.125 1 -0.2 0.8 -0.25 0.6 -0.2625 0.4 -0.275 0.3 -0.225 0.2 -0.15 0.1 -0.075 0.05 0 0'/>
    <ROUTE fromField='fraction_changed' fromNode='Clock' toField='set_fraction' toNode='InterpolateCrossSection'/>
    <Group>
      <Shape>
        <Extrusion DEF='AnimatedCrossSectionExtrusion' convex='false' creaseAngle='3.14' crossSection='0 2 -0.05 1.8 -0.05 1.6 -0.0625 1.4 -0.1 1.2 -0.125 1 -0.2 0.8 -0.25 0.6 -0.2625 0.4 -0.275 0.3 -0.225 0.2 -0.15 0.1 -0.075 0.05 0 0' scale='1.66 1.66 1.5 1.5 1.25 1.25 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.25 1.25 1.5 1.5 1.66 1.66' solid='false' spine='0 0 0 0 6 0 0 7 0 1 7.225 0 29.4 7.225 0 30.1 7 0 30.1 0 0 30.1 -7 0 29.4 -7.225 0 1 -7.225 0 0 -7 0 0 -6 0 0 0 0'/>
        <Appearance>
          <Material diffuseColor='0.05 0.075 0.15' shininess='0.125' specularColor='0.4 0.45 0.45'/>
        </Appearance>
      </Shape>
      <TouchSensor DEF='Toucher' description='touch skirt to inflate/deflate'/>
      <ROUTE fromField='isActive' fromNode='Toucher' toField='enabled' toNode='Clock'/>
      <!-- also reset clock to restart -->
      <ROUTE fromField='touchTime' fromNode='Toucher' toField='startTime' toNode='Clock'/>
    </Group>
    <ROUTE fromField='value_changed' fromNode='InterpolateCrossSection' toField='set_crossSection' toNode='AnimatedCrossSectionExtrusion'/>
  </Scene>
</X3D>