<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
<X3D profile='Immersive' version='3.2 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.2.xsd '>
<head>
<meta name='titlecontent='ExtrusionCrossSectionExampleShip.x3d'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='20 December 1999'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='descriptioncontent='Ship model as example use of ExtrusionCrossSectionPrototype for drawing several different Extrusion spines and cross sections.'/>
<meta name='Imagecontent='ExtrusionCrossSectionExampleShip.png'/>
<meta name='hintcontent='Utilize ExtrusionCrossSection ProtoInstance as a Shape node (with containerField="children") rather than an Extrusion node (with containerField="geometry").'/>
<meta name='referencecontent='ExtrusionExampleShip.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/ExtrusionCrossSectionExampleShip.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<!-- Utilize ExtrusionCrossSection ProtoInstance as a Shape node (with containerField="children") rather than an Extrusion node (with containerField="geometry"). -->
<WorldInfo title='ExtrusionCrossSectionExampleShip.x3d'/>
<ExternProtoDeclare name='ExtrusionCrossSectionappinfo='Shape prototype for Extrusion node that also draws spine line plus oriented scaled cross sections at each spine point' documentation=' https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionPrototype.x3d '
  url=' "ExtrusionCrossSectionPrototype.x3d#ExtrusionCrossSection" "https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionPrototype.x3d#ExtrusionCrossSection" "ExtrusionCrossSectionPrototype.wrl#ExtrusionCrossSection" "https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionPrototype.wrl#ExtrusionCrossSection" '>
<!-- run-time eventIn Extrusion-modification interfaces for VRML 97 compatibility -->
<field name='nametype='SFStringaccessType='initializeOnly'
 appinfo='Extrusion name'/>

<field name='crossSectiontype='MFVec2faccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='spinetype='MFVec3faccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='scaletype='MFVec2faccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='orientationtype='MFRotationaccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='beginCaptype='SFBoolaccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='endCaptype='SFBoolaccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='ccwtype='SFBoolaccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='convextype='SFBoolaccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='creaseAngletype='SFFloataccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='solidtype='SFBoolaccessType='initializeOnly'
 appinfo='Extrusion field'/>

<field name='spineColortype='SFColoraccessType='inputOutput'
 appinfo='emissiveColor of spine'/>

<field name='crossSectionColortype='SFColoraccessType='inputOutput'
 appinfo='diffuseColor of crossSection'/>

<field name='crossSectionTransparencytype='SFFloataccessType='inputOutput'
 appinfo='transparency of crossSection'/>

<field name='extrusionColortype='SFColoraccessType='inputOutput'
 appinfo='diffuseColor of extrusion hull'/>

<field name='extrusionTransparencytype='SFFloataccessType='inputOutput'
 appinfo='transparency of extrusion hull'/>

<field name='extrusionImageTexturetype='SFNodeaccessType='initializeOnly'
 appinfo='Image to apply to Extrusion'/>

<field name='extrusionTextureTransformtype='SFNodeaccessType='initializeOnly'
 appinfo='TextureTransform coordinates of image applied to Extrusion'/>

<field name='set_crossSectiontype='MFVec2faccessType='inputOnly'
 appinfo='Extrusion field'/>

<field name='set_spinetype='MFVec3faccessType='inputOnly'
 appinfo='Extrusion field'/>

<field name='set_scaletype='MFVec2faccessType='inputOnly'
 appinfo='Extrusion field'/>

<field name='set_orientationtype='MFRotationaccessType='inputOnly'
 appinfo='Extrusion field'/>

<field name='traceEnabledtype='SFBoolaccessType='initializeOnly'
 appinfo='Whether to provide initialization trace statements showing node construction'/>
</ExternProtoDeclare>
<!-- ==================== -->
<!-- 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 -->
<!-- ROUTE information for Smoke node:  [from SmokeSpineInterpolator.value_changed to set_spine ] -->
<ProtoInstance name='ExtrusionCrossSectionDEF='Smoke'>
<fieldValue name='namevalue='Smoke'/>
<fieldValue name='crossSectionvalue='0 1 -1 0 0 -0.5 1.5 0 0 1'/>
<fieldValue name='spinevalue='0 0 0 -1 0 0 -2 0 0 -3 0 0 -5 0 0'/>
<fieldValue name='scalevalue='0.8 0.7 0.7 0.6 0.6 0.5 0.5 0.3 0.4 0.2'/>
<fieldValue name='orientationvalue='0 1 0 0 0 1 0 0 0 1 0 -0.4 0 1 0 0 1 0 0 0.4'/>
<fieldValue name='creaseAnglevalue='1'/>
<fieldValue name='solidvalue='false'/>
<fieldValue name='spineColorvalue='1 1 1'/>
<fieldValue name='crossSectionColorvalue='0.2 0.2 0.6'/>
<fieldValue name='extrusionColorvalue='0.0 0.9 0.9'/>
<fieldValue name='extrusionTransparencyvalue='0.5'/>
<fieldValue name='traceEnabledvalue='false'/>
</ProtoInstance>
<!-- 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'>
<ProtoInstance name='ExtrusionCrossSectionDEF='Superstructure'>
<fieldValue name='namevalue='Superstructure'/>
<fieldValue name='crossSectionvalue='0.1 1 0.1 -1 -1 -1 -1 1 0.1 1'/>
<fieldValue name='spinevalue='0 0 0 0 1 0 0 1.95 0 0 1.96 0 0 3 0'/>
<fieldValue name='scalevalue='6 2 6 2 6 2 1 1.8 1 1.8'/>
<fieldValue name='spineColorvalue='0.7 0.7 0'/>
<fieldValue name='ccwvalue='true'/>
<fieldValue name='crossSectionColorvalue='0.6 0.6 0.2'/>
<fieldValue name='extrusionColorvalue='0.3 0.6 0.6'/>
<fieldValue name='extrusionTransparencyvalue='0.6'/>
<fieldValue name='traceEnabledvalue='false'/>
</ProtoInstance>
</Transform>
<Transform DEF='StackPositiontranslation='8 1 0'>
<ProtoInstance name='ExtrusionCrossSectionDEF='Stack'>
<fieldValue name='namevalue='Stack'/>
<fieldValue name='crossSectionvalue='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 1'/>
<fieldValue name='spinevalue='0.1 2 0 0 5 0 -0.4 5.6 0 -1 6 0'/>
<fieldValue name='scalevalue='1 1 1 1 0.9 0.85 0.8 0.4'/>
<fieldValue name='orientationvalue='0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0.4'/>
<fieldValue name='spineColorvalue='1 1 1'/>
<fieldValue name='creaseAnglevalue='1'/>
<fieldValue name='crossSectionColorvalue='0.8 0.2 0.2'/>
<fieldValue name='crossSectionTransparencyvalue='0.1'/>
<fieldValue name='extrusionColorvalue='0.3 0.3 0.3'/>
<fieldValue name='extrusionTransparencyvalue='0.5'/>
<fieldValue name='traceEnabledvalue='false'/>
</ProtoInstance>
</Transform>
<Transform DEF='HullPositiontranslation='0 1 0'>
<ProtoInstance name='ExtrusionCrossSectionDEF='Hull'>
<fieldValue name='namevalue='Hull'/>
<fieldValue name='solidvalue='false'/>
<fieldValue name='crossSectionvalue='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'/>
<fieldValue name='spinevalue='-20 0 0 -17 0 0 0 0 0 10 0 0 22 1 0'/>
<fieldValue name='scalevalue='3 4 4 4 4 4 4 4 5 .1'/>
<fieldValue name='orientationvalue='1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -0.5'/>
<fieldValue name='traceEnabledvalue='false'/>
</ProtoInstance>
</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 ExternProtoDeclare definition : ExtrusionCrossSection

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)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

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