X3D Model Documentation: BridgeDoorStbd.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
  3  <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'>
  4       <head>
  5            <meta name='titlecontent='BridgeDoorStbd.x3d'/>
  6            <meta name='descriptioncontent='Brazilian Naval Academy Training Ship'/>
  7            <meta name='creatorcontent='Claudio Coreixas'/>
  8            <meta name='createdcontent='20 October 2009'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='referencecontent='http://www.en.mar.mil.br'/>
 11            <meta name='subjectcontent='ships parts'/>
 12            <meta name='identifiercontent='https://savage.nps.edu/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/BridgeDoorStbd.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../../license.html'/>
 15       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: BridgeDoorStb, dog, dogSensor, dogTimer, doorIFS, Glass, openDog, openDogSpin, openDoor, openDoorTransform, spinTimer, window, windowIFS

Index for Viewpoint node: Viewpoint_1
-->
 16       <Scene>
 17            <WorldInfo title='BridgeDoorStbd.x3d'/>
 18            <Viewpoint description='DoorfieldOfView='0.45orientation='1 0 0 0position='5.7 2.3 4'/>
 19 
          <!-- ROUTE information for spinTimer node:  [from dogSensor.touchTime to startTime ] [from fraction_changed to openDoor.set_fraction ] -->
          <TimeSensor DEF='spinTimercycleInterval='3'/>
 20 
          <!-- ROUTE information for openDoor node:  [from spinTimer.fraction_changed to set_fraction ] [from value_changed to openDoorTransform.rotation ] -->
          <OrientationInterpolator DEF='openDoorkey='0 0.25 0.5 0.75 1keyValue='0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 1.57 0 1 0 3'/>
 21            < ROUTE  fromNode='spinTimer' fromField='fraction_changed' toNode='openDoor' toField='set_fraction'/>
 22 
          <!-- ROUTE information for dogTimer node:  [from dogSensor.touchTime to startTime ] [from fraction_changed to openDog.set_fraction ] -->
          <TimeSensor DEF='dogTimer'/>
 23 
          <!-- ROUTE information for openDog node:  [from dogTimer.fraction_changed to set_fraction ] [from value_changed to openDogSpin.rotation ] -->
          <OrientationInterpolator DEF='openDogkey='0 1keyValue='0 0 1 0 0 0 1 -1.3'/>
 24            < ROUTE  fromNode='dogTimer' fromField='fraction_changed' toNode='openDog' toField='set_fraction'/>
 25 
          <!-- ROUTE information for openDoorTransform node:  [from openDoor.value_changed to rotation ] -->
          <Transform DEF='openDoorTransformcenter='5.825 2 0.55'>
 26                 < ROUTE  fromNode='openDoor' fromField='value_changed' toNode='openDoorTransform' toField='rotation'/>
 27 
               <!-- ROUTE information for openDogSpin node:  [from openDog.value_changed to rotation ] -->
               <Transform DEF='openDogSpincenter='5.6 2.3 0.55'>
 28                      < ROUTE  fromNode='openDog' fromField='value_changed' toNode='openDogSpin' toField='rotation'/>
 29                      <Transform>
 30                           <Transform>
 31                                <Shape DEF='dog'>
 32                                     <Appearance>
 33                                          <Material/>
 34                                     </Appearance>
 35                                     <Extrusion ccw='falseconvex='falsecrossSection='0.01 0 0.0092 0.0038 0.0071 0.0071 0.0038 0.0092 0 0.01 -0.0038 0.0092 -0.0071 0.0071 -0.0092 0.0038 -0.01 0 -0.0092 -0.0038 -0.0071 -0.0071 -0.0038 -0.0092 0 -0.01 0.0038 -0.0092 0.0071 -0.0071 0.0092 -0.0039 0.01 0scale='0.3 0.5 0.4 0.7 0.55 0.8 0.7 0.85 0.85 0.95 1 1 1 1 0.85 0.95 0.7 0.85 0.55 0.8 0.4 0.7 0.3 0.5solid='falsespine='5.6690 2.3000 0.5670 5.6100 2.3000 0.5670 5.6062 2.3000 0.5662 5.6029 2.3000 0.5641 5.6008 2.3000 0.5609 5.6000 2.3000 0.5570 5.6000 2.3000 0.5430 5.6008 2.3000 0.5392 5.6029 2.3000 0.5359 5.6062 2.3000 0.5338 5.6100 2.3000 0.5330 5.6690 2.3000 0.5330'/>
 36                                </Shape>
 37                           </Transform>
 38 
                         <!-- ROUTE information for dogSensor node:  [from touchTime to spinTimer.startTime ] [from touchTime to dogTimer.startTime ] -->
                         <TouchSensor DEF='dogSensordescription='Touch to Open Hatch'/>
 39                           < ROUTE  fromNode='dogSensor' fromField='touchTime' toNode='spinTimer' toField='startTime'/>
 40                           < ROUTE  fromNode='dogSensor' fromField='touchTime' toNode='dogTimer' toField='startTime'/>
 41                      </Transform>
 42                 </Transform>
 43                 <Shape DEF='BridgeDoorStb'>
 44                      <Appearance>
 45                           <ImageTexture   url=' "wood02.jpg " "https://savage.nps.edu/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/wood02.jpg " '/>
 46                      </Appearance>
 47                      <IndexedFaceSet DEF='doorIFScreaseAngle='1.5solid='falsecoordIndex='0 1 5 4 -1 1 2 6 5 -1 2 3 7 6 -1 0 4 7 3 -1'>
 48                           <Coordinate point='5.575 2 0.55 5.825 2 0.55 5.825 2.55 0.55 5.575 2.55 0.55 5.6 2.325 0.55 5.8 2.325 0.55 5.8 2.525 0.55 5.6 2.525 0.55'/>
 49                      </IndexedFaceSet>
 50                 </Shape>
 51                 <Shape DEF='window'>
 52                      <Appearance>
 53                           <Material DEF='GlassambientIntensity='0.37773332diffuseColor='0.0 0.36666667 0.76666665shininess='0.76666665specularColor='1.0 1.0 1.0transparency='0.58'/>
 54                      </Appearance>
 55                      <IndexedFaceSet DEF='windowIFScreaseAngle='1.5solid='falsecoordIndex='0 1 2 3 -1'>
 56                           <Coordinate point='5.6 2.325 0.55 5.8 2.325 0.55 5.8 2.525 0.55 5.6 2.525 0.55'/>
 57                      </IndexedFaceSet>
 58                 </Shape>
 59            </Transform>
 60       </Scene>
 61  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: BridgeDoorStb, dog, dogSensor, dogTimer, doorIFS, Glass, openDog, openDogSpin, openDoor, openDoorTransform, spinTimer, window, windowIFS

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Coordinate, Extrusion, head, ImageTexture, IndexedFaceSet, 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 6 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.

dogSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
spinTimer
TimeSensor
startTime
SFTime
then
 
 
 
spinTimer
TimeSensor
fraction_changed
SFFloat

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

ROUTE
event to
(3)
openDoorTransform
Transform
rotation
SFRotation
dogSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
dogTimer
TimeSensor
startTime
SFTime
then
 
 
 
dogTimer
TimeSensor
fraction_changed
SFFloat

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

ROUTE
event to
(3)
openDogSpin
Transform
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://savage.nps.edu/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/BridgeDoorStbdIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/BridgeDoorStbd.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. -->