X3D Model Documentation: SkylightHatch.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='https://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'>
  4       <head>
  5            <meta name='titlecontent=' SkylightHatch.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://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/SkylightHatch.x3d '/>
 13            <meta name='generatorcontent='X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 14            <meta name='licensecontent='../../license.html'/>
 15       </head>
<!--

Event Graph ROUTE Table shows event connections.

--> <!-- to top DEF nodes index: Glass, hatchIFS, hatchSensor, openDoor, openDoorTransform, spinTimer, TightDoor, window, windowIFS

Index for Viewpoint node: Viewpoint_1

-->
 16       <Scene>
 17            <WorldInfo title='SkylightHatch.x3d'/>
 18            <Viewpoint description='DoorfieldOfView='0.45orientation='1 0 0 0position='0 0 1'/>
 19 
          <!-- ROUTE information for spinTimer node:  [from hatchSensor.touchTime to startTime ] [from fraction_changed to openDoor.set_fraction ] -->
          <TimeSensor DEF='spinTimercycleInterval='2'/>
 20 
          <!-- ROUTE information for openDoor node:  [from spinTimer.fraction_changed to set_fraction ] [from value_changed to openDoorTransform.rotation ] -->
          <OrientationInterpolator DEF='openDoorkey='0 1keyValue='1 0 0 0 1 0 0 -1.2'/>
 21            < ROUTE  fromNode='spinTimer' fromField='fraction_changed' toNode='openDoor' toField='set_fraction'/>
 22 
          <!-- ROUTE information for openDoorTransform node:  [from openDoor.value_changed to rotation ] -->
          <Transform DEF='openDoorTransformcenter='0 0.01 -0.084'>
 23                 < ROUTE  fromNode='openDoor' fromField='value_changed' toNode='openDoorTransform' toField='rotation'/>
 24                 <Shape DEF='TightDoor'>
 25                      <Appearance>
 26                           <Material diffuseColor='0.82 0.78 0.74'/>
 27                      </Appearance>
 28                      <IndexedFaceSet DEF='hatchIFScreaseAngle='1.5solid='falsecoordIndex='1 2 22 21 -1 2 3 23 22 -1 3 4 24 23 -1 4 5 25 24 -1 5 6 26 25 -1 6 7 27 26 -1 7 8 28 27 -1 8 9 29 28 -1 9 10 30 29 -1 10 11 31 30 -1 11 12 32 31 -1 12 13 33 32 -1 13 14 34 33 -1 14 15 35 34 -1 15 16 36 35 -1 16 17 37 36 -1 17 18 38 37 -1 18 19 39 38 -1 19 20 40 39 -1 20 1 21 40 -1 21 22 42 41 -1 22 23 43 42 -1 23 24 44 43 -1 24 25 45 44 -1 25 26 46 45 -1 26 27 47 46 -1 27 28 48 47 -1 28 29 49 48 -1 29 30 50 49 -1 30 31 51 50 -1 31 32 52 51 -1 32 33 53 52 -1 33 34 54 53 -1 34 35 55 54 -1 35 36 56 55 -1 36 37 57 56 -1 37 38 58 57 -1 38 39 59 58 -1 39 40 60 59 -1 40 21 41 60 -1 41 42 62 61 -1 42 43 63 62 -1 43 44 64 63 -1 44 45 65 64 -1 45 46 66 65 -1 46 47 67 66 -1 47 48 68 67 -1 48 49 69 68 -1 49 50 70 69 -1 50 51 71 70 -1 51 52 72 71 -1 52 53 73 72 -1 53 54 74 73 -1 54 55 75 74 -1 55 56 76 75 -1 56 57 77 76 -1 57 58 78 77 -1 58 59 79 78 -1 59 60 80 79 -1 60 41 61 80 -1 61 62 81 -1 62 63 81 -1 63 64 81 -1 64 65 81 -1 65 66 82 81 -1 66 67 82 -1 67 68 82 -1 68 69 82 -1 69 70 82 -1 70 71 83 82 -1 71 72 83 -1 72 73 83 -1 73 74 83 -1 74 75 83 -1 75 76 84 83 -1 76 77 84 -1 77 78 84 -1 78 79 84 -1 79 80 84 -1 80 61 81 84 -1 81 85 84 -1 84 97 83 -1 83 93 82 -1 82 89 81 -1 85 81 86 -1 86 81 87 -1 87 81 88 -1 88 81 89 -1 89 82 90 -1 90 82 91 -1 91 82 92 -1 92 82 93 -1 93 83 94 -1 94 83 95 -1 95 83 96 -1 96 83 97 -1 97 84 98 -1 98 84 99 -1 99 84 100 -1 100 84 101 -1'>
 29                           <Coordinate point='0.0000 0.0000 0.0000 0.0779 0.0000 0.0768 0.0772 0.0000 0.0806 0.0750 0.0000 0.0838 0.0718 0.0000 0.0860 0.0679 0.0000 0.0868 -0.0679 0.0000 0.0868 -0.0717 0.0000 0.0860 -0.0750 0.0000 0.0839 -0.0772 0.0000 0.0806 -0.0779 0.0000 0.0768 -0.0779 0.0000 -0.0768 -0.0772 0.0000 -0.0806 -0.0750 0.0000 -0.0838 -0.0718 0.0000 -0.0860 -0.0680 0.0000 -0.0868 0.0679 0.0000 -0.0868 0.0717 0.0000 -0.0860 0.0750 0.0000 -0.0839 0.0772 0.0000 -0.0806 0.0779 0.0000 -0.0768 0.0772 0.0038 0.0768 0.0765 0.0038 0.0803 0.0745 0.0038 0.0833 0.0715 0.0038 0.0853 0.0679 0.0038 0.0860 -0.0679 0.0038 0.0860 -0.0715 0.0038 0.0853 -0.0745 0.0038 0.0833 -0.0765 0.0038 0.0803 -0.0772 0.0038 0.0768 -0.0772 0.0038 -0.0768 -0.0765 0.0038 -0.0803 -0.0745 0.0038 -0.0833 -0.0715 0.0038 -0.0853 -0.0680 0.0038 -0.0860 0.0679 0.0038 -0.0860 0.0714 0.0038 -0.0853 0.0744 0.0038 -0.0833 0.0765 0.0038 -0.0803 0.0772 0.0038 -0.0768 0.0750 0.0071 0.0768 0.0745 0.0071 0.0795 0.0729 0.0071 0.0818 0.0706 0.0071 0.0833 0.0679 0.0071 0.0839 -0.0679 0.0071 0.0839 -0.0706 0.0071 0.0833 -0.0729 0.0071 0.0818 -0.0745 0.0071 0.0795 -0.0750 0.0071 0.0768 -0.0750 0.0071 -0.0768 -0.0745 0.0071 -0.0795 -0.0729 0.0071 -0.0818 -0.0707 0.0071 -0.0833 -0.0679 0.0071 -0.0839 0.0679 0.0071 -0.0839 0.0706 0.0071 -0.0833 0.0729 0.0071 -0.0818 0.0745 0.0071 -0.0795 0.0750 0.0071 -0.0768 0.0718 0.0092 0.0768 0.0715 0.0092 0.0782 0.0706 0.0092 0.0795 0.0694 0.0092 0.0803 0.0679 0.0092 0.0806 -0.0679 0.0092 0.0806 -0.0694 0.0092 0.0803 -0.0706 0.0092 0.0795 -0.0715 0.0092 0.0783 -0.0718 0.0092 0.0768 -0.0718 0.0092 -0.0768 -0.0715 0.0092 -0.0782 -0.0706 0.0092 -0.0795 -0.0694 0.0092 -0.0803 -0.0679 0.0092 -0.0806 0.0679 0.0092 -0.0806 0.0694 0.0092 -0.0803 0.0706 0.0092 -0.0795 0.0715 0.0092 -0.0783 0.0718 0.0092 -0.0768 0.0679 0.0100 0.0768 -0.0679 0.0100 0.0768 -0.0679 0.0100 -0.0768 0.0679 0.0100 -0.0768 0.0400 0.0100 0.0000 0.0370 0.0100 0.0153 0.0283 0.0100 0.0283 0.0153 0.0100 0.0369 0.0000 0.0100 0.0400 -0.0153 0.0100 0.0370 -0.0283 0.0100 0.0283 -0.0369 0.0100 0.0154 -0.0400 0.0100 0.0000 -0.0370 0.0100 -0.0152 -0.0283 0.0100 -0.0282 -0.0154 0.0100 -0.0369 0.0000 0.0100 -0.0400 0.0152 0.0100 -0.0370 0.0282 0.0100 -0.0284 0.0369 0.0100 -0.0154 0.0400 0.0100 0.0000'/>
 30                      </IndexedFaceSet>
 31                 </Shape>
 32 
               <!-- ROUTE information for hatchSensor node:  [from touchTime to spinTimer.startTime ] -->
               <TouchSensor DEF='hatchSensordescription='Touch to Open Hatch'/>
 33                 < ROUTE  fromNode='hatchSensor' fromField='touchTime' toNode='spinTimer' toField='startTime'/>
 34                 <Shape DEF='window'>
 35                      <Appearance>
 36                           <Material DEF='GlassambientIntensity='0.37773332diffuseColor='0.0 0.36666667 0.76666665shininess='0.76666665specularColor='1.0 1.0 1.0transparency='0.58'/>
 37                      </Appearance>
 38                      <IndexedFaceSet DEF='windowIFScreaseAngle='1.5solid='falsecoordIndex='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 -1'>
 39                           <Coordinate point='0.0300 0.0120 0.0000 0.0277 0.0120 0.0115 0.0212 0.0120 0.0212 0.0115 0.0120 0.0277 0.0000 0.0120 0.0300 -0.0115 0.0120 0.0277 -0.0212 0.0120 0.0212 -0.0277 0.0120 0.0115 -0.0300 0.0120 0.0000 -0.0277 0.0120 -0.0114 -0.0213 0.0120 -0.0212 -0.0115 0.0120 -0.0277 -0.0001 0.0120 -0.0300 0.0114 0.0120 -0.0277 0.0212 0.0120 -0.0213 0.0277 0.0120 -0.0116 0.0300 0.0120 -0.0001'/>
 40                      </IndexedFaceSet>
 41                 </Shape>
 42                 <Shape>
 43                      <Appearance>
 44                           <Material ambientIntensity='0.02diffuseColor='0.701961 0.588235 0shininess='0.29specularColor='1 0.887979 0'/>
 45                      </Appearance>
 46                      <Extrusion crossSection='-0.005 0 0 0 0 -0.0025 -0.005 -0.0025 -0.005 -0.005 -0.01 -0.005 -0.01 0 -0.005 0solid='falsespine='0.04 0.01 0 0.037 0.01 0.0153 0.0283 0.01 0.0283 0.0153 0.01 0.0369 0 0.01 0.04 -0.0153 0.01 0.037 -0.0283 0.01 0.0283 -0.0369 0.01 0.0154 -0.04 0.01 0 -0.037 0.01 -0.0152 -0.0283 0.01 -0.0282 -0.0154 0.01 -0.0369 0 0.01 -0.04 0.0152 0.01 -0.037 0.0282 0.01 -0.0284 0.0369 0.01 -0.0154 0.04 0.01 0'/>
 47                 </Shape>
 48                 <Shape>
 49                      <Appearance>
 50                           <Material ambientIntensity='0.02diffuseColor='0.701961 0.588235 0shininess='0.29specularColor='1 0.887979 0'/>
 51                      </Appearance>
 52                      <Extrusion crossSection='0 0 0.001 0 0.001 0.002 -0.001 0.002 -0.001 0 0 0solid='falsespine='0.0300 0.0150 0.0000 -0.0300 0.0150 0.0000'/>
 53                 </Shape>
 54                 <Shape>
 55                      <Appearance>
 56                           <Material ambientIntensity='0.02diffuseColor='0.701961 0.588235 0shininess='0.29specularColor='1 0.887979 0'/>
 57                      </Appearance>
 58                      <Extrusion crossSection='0 0 0.001 0 0.001 0.002 -0.001 0.002 -0.001 0 0 0solid='falsespine='0.0277 0.0150 0.0115 -0.0277 0.0150 0.0115'/>
 59                 </Shape>
 60                 <Shape>
 61                      <Appearance>
 62                           <Material ambientIntensity='0.02diffuseColor='0.701961 0.588235 0shininess='0.29specularColor='1 0.887979 0'/>
 63                      </Appearance>
 64                      <Extrusion crossSection='0 0 0.001 0 0.001 0.002 -0.001 0.002 -0.001 0 0 0solid='falsespine='0.0212 0.0150 0.0212 -0.0212 0.0150 0.0212'/>
 65                 </Shape>
 66                 <Shape>
 67                      <Appearance>
 68                           <Material ambientIntensity='0.02diffuseColor='0.701961 0.588235 0shininess='0.29specularColor='1 0.887979 0'/>
 69                      </Appearance>
 70                      <Extrusion crossSection='0 0 0.001 0 0.001 0.002 -0.001 0.002 -0.001 0 0 0solid='falsespine='-0.0277 0.0150 -0.0114 0.0277 0.0150 -0.0116'/>
 71                 </Shape>
 72                 <Shape>
 73                      <Appearance>
 74                           <Material ambientIntensity='0.02diffuseColor='0.701961 0.588235 0shininess='0.29specularColor='1 0.887979 0'/>
 75                      </Appearance>
 76                      <Extrusion crossSection='0 0 0.001 0 0.001 0.002 -0.001 0.002 -0.001 0 0 0solid='falsespine='-0.0213 0.0150 -0.0212 0.0212 0.0150 -0.0213'/>
 77                 </Shape>
 78            </Transform>
 79       </Scene>
 80  </X3D>
<!--

Event Graph ROUTE Table shows event connections.

--> <!-- to top DEF nodes index: Glass, hatchIFS, hatchSensor, openDoor, openDoorTransform, spinTimer, TightDoor, window, windowIFS

Index for Viewpoint node: Viewpoint_1

-->
X3D Tooltips element index: Appearance, Coordinate, Extrusion, head, 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 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.

hatchSensor
TouchSensor
touchTime
SFTime

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

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

ROUTE
event to
(3)
openDoorTransform
Transform
rotation
SFRotation

spinTimer
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
openDoor
OrientationInterpolator
set_fraction
SFFloat
then
from
same
node
openDoor
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(2)
openDoorTransform
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://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/SkylightHatchIndex.html -->
<!-- SourceForge version control Version control at    
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/SkylightHatch.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. -->