<?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='ExtrusionExampleShip.x3d'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='3 September 2005'/>
<meta name='modifiedcontent='19 October 2015'/>
<meta name='descriptioncontent='Ship model for drawing several different Extrusion spines and cross sections - see ExtrusionCrossSectionExampleShip for corresponding use of ExtrusionCrossSectionPrototype.'/>
<meta name='Imagecontent='ExtrusionExampleShip.png'/>
<meta name='referencecontent='ExtrusionCrossSectionExampleShip.x3d'/>
<meta name='referencecontent='ExtrusionCrossSectionExampleTorus.x3d'/>
<meta name='referencecontent='ExtrusionCrossSectionPrototype.x3d'/>
<meta name='referencecontent='VRML 97 Specification, 6.18 Extrusion'/>
<meta name='referencecontent=' http://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#Extrusion '/>
<meta name='Imagecontent='VRML 97 Specification, Figure 6.6'/>
<meta name='Imagecontent=' http://www.web3d.org/technicalinfo/specifications/vrml97/part1/Images/Extrusion.gif '/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionExampleShip.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<!-- ==================== -->
<!-- Example instance -->
<NavigationInfo speed='4'/>
<Viewpoint description='ship hullposition='0 0 40'/>
<Viewpoint description='stackposition='8 5 20'/>
<Viewpoint description='smoke extrusion startposition='6.8 7 10'/>
<Viewpoint description='forward starboard quarterorientation='0 1 0 0.5position='20 3 25'/>
<Transform rotation='0 1 0 1.57translation='15 30 0'>
<Viewpoint description='touch smoke to animateorientation='1 0 0 -1position='0 0 0'/>
</Transform>
<Background groundColor='0.7 0.7 0.7skyAngle='0.05 1.5 1.59skyColor='0.6 0.6 0.4 0.4 0.4 0.7 0.3 0.3 0.6 0.1 0.1 0.3'/>
<!-- ==================== -->
<Transform DEF='SmokePositiontranslation='5.8 7 0'>
<!-- Smoke shows that crossSection, spine, scale and orientation can be animated -->
<Shape>
<!-- ROUTE information for Smoke node:  [from SmokeSpineInterpolator.value_changed to set_spine ] -->
<Extrusion DEF='SmokecreaseAngle='1crossSection='0 1 -1 0 0 -0.5 1.5 0 0 1orientation='0 1 0 0 0 1 0 0 0 1 0 -0.4 0 1 0 0 1 0 0 0.4scale='0.8 0.7 0.7 0.6 0.6 0.5 0.5 0.3 0.4 0.2solid='falsespine='0 0 0 -1 0 0 -2 0 0 -3 0 0 -5 0 0'/>
<Appearance>
<Material diffuseColor='0.0 0.9 0.9transparency='0.3'/>
</Appearance>
</Shape>
<!-- ROUTE information for TouchSmoke node:  [from touchTime to SmokeClock.startTime ] -->
<TouchSensor DEF='TouchSmokedescription='click smoke to animate'/>
<!-- ROUTE information for SmokeClock node:  [from TouchSmoke.touchTime to startTime ] [from fraction_changed to SmokeSpineInterpolator.set_fraction ] -->
<TimeSensor DEF='SmokeClockcycleInterval='30startTime='-1'/>
<!-- ROUTE information for SmokeSpineInterpolator node:  [from SmokeClock.fraction_changed to set_fraction ] [from value_changed to Smoke.set_spine ] -->
<CoordinateInterpolator DEF='SmokeSpineInterpolatorkey='0 0.2 0.5 0.8 1keyValue='0 0 0 -1 0 0 -2 0 0 -3 0 0 -5 0 0 0 0 0 -2 0 0 -4 -0.5 0 -6 -1 0 -8 -2 0 0 0 0 -4 0 0 -8 -1 0 -13 -2 0 -20 -2.5 0 0 0 0 -2 0 0 -4 -0.5 0 -6 -1 0 -8 -2 0 0 0 0 -1 0 0 -2 0 0 -3 0 0 -5 0 0'/>
<ROUTE fromNode='TouchSmokefromField='touchTimetoNode='SmokeClocktoField='startTime'/>
<ROUTE fromNode='SmokeClockfromField='fraction_changedtoNode='SmokeSpineInterpolatortoField='set_fraction'/>
<ROUTE fromNode='SmokeSpineInterpolatorfromField='value_changedtoNode='SmoketoField='set_spine'/>
</Transform>
<Transform DEF='SuperstructurePositiontranslation='12 1 0'>
<Shape>
<Extrusion DEF='SuperstructurecrossSection='0.1 1 0.1 -1 -1 -1 -1 1 0.1 1scale='6 2 6 2 6 2 1 1.8 1 1.8spine='0 0 0 0 1 0 0 1.95 0 0 1.96 0 0 3 0'/>
<Appearance>
<Material diffuseColor='0.3 0.6 0.6'/>
</Appearance>
</Shape>
</Transform>
<Transform DEF='StackPositiontranslation='8 1 0'>
<Shape>
<Extrusion DEF='StackcreaseAngle='1crossSection='0 1 0.38 0.92 0.71 0.71 0.92 0.38 1 0 0.92 -0.38 0.71 -0.71 0.38 -0.92 0 -1 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1 0 -0.92 0.38 -0.71 0.71 -0.38 0.92 0 1orientation='0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0.4scale='1 1 1 1 0.9 0.85 0.8 0.4spine='0.1 2 0 0 5 0 -0.4 5.6 0 -1 6 0'/>
<Appearance>
<Material diffuseColor='0.3 0.3 0.3transparency='0.5'/>
</Appearance>
</Shape>
</Transform>
<Transform DEF='HullPositiontranslation='0 1 0'>
<Shape>
<Extrusion DEF='HullcreaseAngle='3.14crossSection='0 1 0.38 0.92 0.71 0.71 0.92 0.38 1 0 0.92 -0.38 0.71 -0.71 0.38 -0.92 0 -1orientation='1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -0.5scale='3 4 4 4 4 4 4 4 5 .1solid='falsespine='-20 0 0 -17 0 0 0 0 0 10 0 0 22 1 0'/>
<Appearance>
<Material diffuseColor='0.5 0.5 0.5'/>
</Appearance>
</Shape>
</Transform>
<!-- ==================== -->
<!-- Display world coordinate axes at (0 0 0) -->
<Transform scale='5 5 5'> </Transform>
<!-- Display smoke extrusion coordinate axes: y along spine, x pointing up -->
<Transform translation='6 8.5 0'>
<Transform rotation='0 0 1 1.57'>
<Inline USE='CoordinateAxes'/>
</Transform>
</Transform>
</Scene>
</X3D>
<!--

Index for DEF nodes : CoordinateAxes, Hull, HullPosition, Smoke, SmokeClock, SmokePosition, SmokeSpineInterpolator, Stack, StackPosition, Superstructure, SuperstructurePosition, TouchSmoke

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5
-->

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