X3D Model Documentation: Rotor.x3d

  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            <meta name='titlecontent=' Rotor.x3d '/>
  6            <meta name='createdcontent='1 September 2004'/>
  7            <meta name='modifiedcontent='20 October 2019'/>
  8            <meta name='creatorcontent='Tay Yeong Kiang Winston'/>
  9            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/HovercraftSnr6Singapore/Rotor.x3d '/>
 10            <meta name='descriptioncontent='Creates the motor rotor with touch sensor for rotating the blades.'/>
 11            <meta name='licensecontent='../../license.html'/>
 12       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Blade, CLOCK, MyTouchSensor, Rotor, ROTOR_TRANSFORM, RotorPathInterpolator

Index for Viewpoint node: Viewpoint_1
-->
 13       <Scene>
 14            <WorldInfo title='Rotor.x3d'/>
 15            <Viewpoint description='Rotor Side Vieworientation='0 1 0 1.57position='10 0 0'/>
 16            <Group>
 17 
               <!-- ROUTE information for ROTOR_TRANSFORM node:  [from RotorPathInterpolator.value_changed to set_rotation ] -->
               <Transform DEF='ROTOR_TRANSFORM'>
 18                      <Group DEF='Rotor'>
 19                           <Shape>
 20                                <Extrusion crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00scale='0.2 0.2 0.15 0.15 0.1 0.1spine='0 0 0.5 0 0 0.1 0 0 0'/>
 21                                <Appearance>
 22                                     <Material ambientIntensity='0.0diffuseColor='0.0 0.0 0.0shininess='0.056122specularColor='0.918367 0.910614 0.885116'/>
 23                                </Appearance>
 24                           </Shape>
 25                      </Group>
 26 
                    <!-- Group Blade is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                    <Group DEF='Blade'>
 27                           <Shape>
 28                                <Extrusion crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00orientation='0 1 0 0 0 1 0 1.2 0 1 0 1.5 0 1 0 1.7scale='0.05 0.1 0.05 0.15 0.05 0.15 0.05 0.15spine='0 0 0.1 0 0.6 0.1 0 2 0.1 0 2.5 0.1'/>
 29                                <Appearance>
 30                                     <Material ambientIntensity='0.0diffuseColor='0.0 0.0 0.0shininess='0.056122specularColor='0.918367 0.910614 0.885116'/>
 31                                </Appearance>
 32                           </Shape>
 33                      </Group>
 34                      <Transform rotation='0 0 1 1.57'>
 35                           <Group USE='Blade'/>
 36                      </Transform>
 37                      <Transform rotation='0 0 1 -1.57'>
 38                           <Group USE='Blade'/>
 39                      </Transform>
 40                      <Transform rotation='0 0 1 3.14'>
 41                           <Group USE='Blade'/>
 42                      </Transform>
 43                 </Transform>
 44 
               <!-- ROUTE information for MyTouchSensor node:  [from touchTime to CLOCK.set_startTime ] -->
               <TouchSensor DEF='MyTouchSensordescription='click to start'/>
 45 
               <!-- ROUTE information for CLOCK node:  [from MyTouchSensor.touchTime to set_startTime ] [from fraction_changed to RotorPathInterpolator.set_fraction ] -->
               <TimeSensor DEF='CLOCKcycleInterval='4'/>
 46 
               <!-- ROUTE information for RotorPathInterpolator node:  [from CLOCK.fraction_changed to set_fraction ] [from value_changed to ROTOR_TRANSFORM.set_rotation ] -->
               <OrientationInterpolator DEF='RotorPathInterpolatorkey='0 0.5 1keyValue='0.0 0.0 1.0 0.0 0.0 0.0 1.0 3.14 0.0 0.0 1.0 6.28'/>
 47            </Group>
 48            < ROUTE  fromNode='MyTouchSensor' fromField='touchTime' toNode='CLOCK' toField='set_startTime'/>
 49            < ROUTE  fromNode='CLOCK' fromField='fraction_changed' toNode='RotorPathInterpolator' toField='set_fraction'/>
 50            < ROUTE  fromNode='RotorPathInterpolator' fromField='value_changed' toNode='ROTOR_TRANSFORM' toField='set_rotation'/>
 51       </Scene>
 52  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Blade, CLOCK, MyTouchSensor, Rotor, ROTOR_TRANSFORM, RotorPathInterpolator

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Extrusion, Group, head, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, TimeSensor, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

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.

MyTouchSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
CLOCK
TimeSensor
set_startTime
SFTime
then
 
 
 
CLOCK
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
RotorPathInterpolator
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
RotorPathInterpolator
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(3)
ROTOR_TRANSFORM
Transform
set_rotation
SFRotation


Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/HovercraftSnr6Singapore/RotorIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/HovercraftSnr6Singapore/Rotor.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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. -->