1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <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'> |
4 | <head> |
5 | <component level='3' name='Interpolation'/> |
6 | <meta name='title' content='Skirt.x3d'/> |
7 | <meta name='description' content='Animated Skirt for LCAC which animates using a Vector2FloatArray Interpolator - click geometry to activate animation loop.'/> |
8 | <meta name='creator' content='Jeff Weekley, Don Brutzman and Jane Wu'/> |
9 | <meta name='created' content='15 July 2001'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name='reference' content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/concepts.html#4.6.8'/> |
12 | <meta name='reference' content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#CoordinateInterpolator'/> |
13 | <meta name='reference' content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#Extrusion'/> |
14 | <meta name='subject' content='Skirt'/> |
15 | <meta name='identifier' content='https://savage.nps.edu/Savage/AmphibiousVehicles/LCAC/Skirt.x3d'/> |
16 | <meta name='generator' content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/> |
17 | <meta name='license' content='../../license.html'/> |
18 | </head> |
19 | <Scene> |
20 | <WorldInfo title='Skirt.x3d'/> |
21 | <Background skyColor='0.25 0.4 0.85'/> |
22 | <!-- ====================================== --> |
23 | <Viewpoint description='Click to inflate/deflate skirt' orientation='1 0 0 0.5' position='15 -15 30'/> |
24 |
<!-- ROUTE information for Clock node:
[from Toucher.isActive to enabled
]
[from Toucher.touchTime to startTime
]
[from fraction_changed to InterpolateCrossSection.set_fraction
]
-->
<TimeSensor DEF='Clock' cycleInterval='5' enabled='false' loop='true'/> |
25 |
<!-- ROUTE information for InterpolateCrossSection node:
[from Clock.fraction_changed to set_fraction
]
[from value_changed to AnimatedCrossSectionExtrusion.set_crossSection
]
-->
<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'/> |
26 | < ROUTE fromNode='Clock' fromField='fraction_changed' toNode='InterpolateCrossSection' toField='set_fraction'/> |
27 | <Group> |
28 | <Shape> |
29 |
<!-- ROUTE information for AnimatedCrossSectionExtrusion node:
[from InterpolateCrossSection.value_changed to set_crossSection
]
-->
<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'/> |
30 | <Appearance> |
31 | <Material diffuseColor='0.05 0.075 0.15' shininess='0.125' specularColor='0.4 0.45 0.45'/> |
32 | </Appearance> |
33 | </Shape> |
34 |
<!-- ROUTE information for Toucher node:
[from isActive to Clock.enabled
]
[from touchTime to Clock.startTime
]
-->
<TouchSensor DEF='Toucher' description='touch skirt to inflate/deflate'/> |
35 | < ROUTE fromNode='Toucher' fromField='isActive' toNode='Clock' toField='enabled'/> |
36 | <!-- also reset clock to restart --> |
37 | < ROUTE fromNode='Toucher' fromField='touchTime' toNode='Clock' toField='startTime'/> |
38 | </Group> |
39 | < ROUTE fromNode='InterpolateCrossSection' fromField='value_changed' toNode='AnimatedCrossSectionExtrusion' toField='set_crossSection'/> |
40 | </Scene> |
41 | </X3D> |
Event Graph ROUTE Table entries with 4 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.
Toucher
TouchSensor isActive SFBool |
Clock
TimeSensor enabled SFBool |
then
|
Clock
TimeSensor fraction_changed SFFloat |
InterpolateCrossSection
CoordinateInterpolator2D set_fraction SFFloat |
then
|
InterpolateCrossSection
CoordinateInterpolator2D value_changed MFVec2f |
AnimatedCrossSectionExtrusion
Extrusion set_crossSection MFVec2f |
|||
Toucher
TouchSensor touchTime SFTime |
Clock
TimeSensor startTime SFTime |
then
|
Clock
TimeSensor fraction_changed SFFloat |
InterpolateCrossSection
CoordinateInterpolator2D set_fraction SFFloat |
then
|
InterpolateCrossSection
CoordinateInterpolator2D value_changed MFVec2f |
AnimatedCrossSectionExtrusion
Extrusion set_crossSection MFVec2f |
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->