<?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=' ExtrusionExampleShip.x3d '/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='3 September 2005'/>
<meta name='modifiedcontent='20 October 2019'/>
<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=' https://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#Extrusion '/>
<meta name='Imagecontent='VRML 97 Specification, Figure 6.6' />
<meta name='Imagecontent=' https://www.web3d.org/technicalinfo/specifications/vrml97/part1/Images/Extrusion.gif ' />
<meta name='identifiercontent=' https://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 -->
<WorldInfo title='ExtrusionExampleShip.x3d'/>
<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=' TouchSmoke' fromField='touchTime' toNode=' SmokeClock' toField='startTime'/>
< ROUTE  fromNode=' SmokeClock' fromField='fraction_changed' toNode=' SmokeSpineInterpolator' toField='set_fraction'/>
< ROUTE  fromNode=' SmokeSpineInterpolator' fromField='value_changed' toNode=' Smoke' toField='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>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: CoordinateAxes, Hull, HullPosition, Smoke, SmokeClock, SmokePosition, SmokeSpineInterpolator, Stack, StackPosition, Superstructure, SuperstructurePosition, TouchSmoke

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

Event Graph ROUTE Table entries with 3 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

TouchSmoke
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
SmokeClock
TimeSensor
startTime
SFTime

 
 
then
SmokeClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
SmokeSpineInterpolator
CoordinateInterpolator
set_fraction
SFFloat

 
 
then
SmokeSpineInterpolator
CoordinateInterpolator
value_changed
MFVec3f

ROUTE
event to
(3)
Smoke
Extrusion
set_spine
MFVec3f



-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionExampleShipIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/course/ExtrusionExampleShip.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

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