X3D Model Documentation: FrontWheel.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=' FrontWheel.x3d '/>
  6            <meta name='descriptioncontent='F16 front wheel'/>
  7            <meta name='creatorcontent='Etsuko Lippi'/>
  8            <meta name='translatorcontent='Murat ONDER, LTJG, Turkish Navy'/>
  9            <meta name='createdcontent='19 July 2001'/>
 10            <meta name='modifiedcontent='28 November 2019'/>
 11            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/FrontWheel.x3d '/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: axis, black, Clock, front_wheel, Hub, inside_wheel, mainAxle, WheelInterpolator, WheelsFrontAxleTransform, WheelTouchSensor, WheelTransform, white
-->
 14       <Scene>
 15            <!-- Example scene to illustrate X3D tags and attributes. -->
 16            <WorldInfo title='FrontWheel.x3d'/>
 17            <Transform DEF='WheelsFrontAxleTransformrotation='0 1 0 -1.57'>
 18                 <Group>
 19                      <!-- Upper white axles -->
 20                      <Transform translation='0 -0.25 0'>
 21                           <Transform scale='0.7 0.7 0.7translation='0 2.0 0.75'>
 22                                <!-- main axle for front wheels -->
 23                                <Shape>
 24 
                                   <!-- Appearance mainAxle is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                                   <Appearance DEF='mainAxle'>
 25                                          <Material diffuseColor='1.0 1.0 1.0'/>
 26                                     </Appearance>
 27                                     <Cylinder height='2.5radius='0.25'/>
 28                                </Shape>
 29                           </Transform>
 30                           <Transform rotation='0 0 -1 1.05scale='0.7 0.7 0.7translation='0.68 1.8 0.75'>
 31                                <!-- assistant axle for front wheels -->
 32                                <Shape>
 33                                     <Appearance USE='mainAxle'/>
 34                                     <Cylinder height='2.1radius='0.2'/>
 35                                </Shape>
 36                           </Transform>
 37                           <Transform rotation='0 0 -1 1.05scale='0.7 0.7 0.7translation='1.8 2.42 0.75'>
 38                                <!-- assistant axle for front wheels -->
 39                                <Shape>
 40                                     <Appearance USE='mainAxle'/>
 41                                     <Cylinder height='1.6radius='0.3'/>
 42                                </Shape>
 43                           </Transform>
 44                      </Transform>
 45                 </Group>
 46                 <Group>
 47                      <!-- Gray joints and wheel group -->
 48                      <Transform translation='0 0 -0.73'>
 49                           <Transform translation='0 0.55 0.95'>
 50                                <!-- vertical axle -->
 51                                <Shape>
 52 
                                   <!-- Appearance axis is a DEF node that has 4 USE nodes: USE_1, USE_2, USE_3, USE_4 -->
                                   <Appearance DEF='axis'>
 53                                          <Material ambientIntensity='0.3diffuseColor='0.3 0.3 0.3shininess='0.20specularColor='0.50 0.50 0.60'/>
 54                                     </Appearance>
 55                                     <Cylinder height='1radius='0.08'/>
 56                                </Shape>
 57                           </Transform>
 58                           <Transform rotation='1 0 0 1.57scale='0.7 0.7 0.7translation='0 0 1'>
 59                                <!-- lower horizontal axle -->
 60                                <Shape>
 61                                     <Appearance USE='axis'/>
 62                                     <Cylinder height='0.5radius='0.1'/>
 63                                </Shape>
 64                           </Transform>
 65                           <Transform rotation='1 0 0 1.57scale='0.7 0.7 0.7translation='0 0 0.95'>
 66                                <!-- lower Joint -->
 67                                <Shape>
 68                                     <Appearance USE='axis'/>
 69                                     <Cylinder height='0.4radius='0.15'/>
 70                                </Shape>
 71                           </Transform>
 72                           <Group>
 73                                <!-- wheel -->
 74 
                              <!-- ROUTE information for WheelTransform node:  [from WheelInterpolator.value_changed to set_rotation ] -->
                              <Transform DEF='WheelTransform'>
 75 
                                   <!-- ROUTE information for WheelTouchSensor node:  [from isOver to Clock.set_enabled ] -->
                                   <TouchSensor DEF='WheelTouchSensordescription='When the mouse comes over the wheel the wheel starts to turn.'/>
 76 
                                   <!-- ROUTE information for Clock node:  [from WheelTouchSensor.isOver to set_enabled ] [from fraction_changed to WheelInterpolator.set_fraction ] -->
                                   <TimeSensor DEF='ClockcycleInterval='0.5enabled='falseloop='true'/>
 77 
                                   <!-- ROUTE information for WheelInterpolator node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to WheelTransform.set_rotation ] -->
                                   <OrientationInterpolator DEF='WheelInterpolatorkey='0 0.5 1.0keyValue='0 0 1 0.0 0 0 1 3.14 0 0 1 6.28'/>
 78                                     < ROUTE  fromNode='WheelTouchSensor' fromField='isOver' toNode='Clock' toField='set_enabled'/>
 79                                     < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='WheelInterpolator' toField='set_fraction'/>
 80                                     < ROUTE  fromNode='WheelInterpolator' fromField='value_changed' toNode='WheelTransform' toField='set_rotation'/>
 81                                     <Transform scale='0.3 0.3 0.3translation='0 0 1.5'>
 82                                          <Transform rotation='0 1 0 1.571'>
 83                                               <Shape DEF='front_wheel'>
 84                                                    <Appearance>
 85                                                         <Material DEF='blackdiffuseColor='0 0 0shininess='0.125specularColor='0.2 0.2 0.2'/>
 86                                                    </Appearance>
 87                                                    <Extrusion creaseAngle='3.14crossSection='0.00 1.30 .494 1.196 .923 .923 1.196 .494 1.30 0.00 1.196 -.494 .923 -.923 .494 -1.196 0.00 -1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
 88                                               </Shape>
 89                                               <Shape DEF='inside_wheel'>
 90 
                                                  <!-- Appearance white is a DEF node that has 1 USE node: USE_1 -->
                                                  <Appearance DEF='white'>
 91                                                         <Material diffuseColor='1 1 1'/>
 92                                                    </Appearance>
 93                                                    <Extrusion crossSection='0.00 1.30 0.10 1.30 0.10 0.00 0.10 -1.30 0.00 -1.30 0.00 0.00 0.00 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
 94                                               </Shape>
 95                                          </Transform>
 96                                          <Transform rotation='0 1 0 1.571'>
 97                                               <Shape>
 98                                                    <Appearance USE='white'/>
 99                                                    <Extrusion crossSection='-0.10 1.30 0.00 1.30 0.00 0.00 0.00 -1.30 -0.10 -1.30 -0.10 0.00 -0.10 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
100                                               </Shape>
101                                          </Transform>
102                                          <Transform rotation='0 1 0 1.571'>
103                                               <Shape>
104                                                    <Appearance>
105                                                         <Material diffuseColor='0 0.25 0.5'/>
106                                                    </Appearance>
107                                                    <Extrusion crossSection='-0.30 1.30 -0.10 1.30 -0.10 0.00 -0.10 -1.30 -0.30 -1.30 -0.30 0.00 -0.30 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
108                                               </Shape>
109                                          </Transform>
110                                     </Transform>
111                                     <Transform translation='0 0 1.80'>
112 
                                        <!-- Inline Hub is a DEF node that has 1 USE node: USE_1 -->
                                        <Inline DEF='Hub'   url=' "Hub.x3d" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/Hub.x3d" "Hub.wrl" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/Hub.wrl" '/>
113                                     </Transform>
114                                     <Transform translation='0 0 1.20'>
115                                          <Inline USE='Hub'/>
116                                     </Transform>
117                                </Transform>
118                           </Group>
119                           <Transform rotation='1 0 0 1.57scale='0.7 0.7 0.7translation='0 1 0.95'>
120                                <!-- Upper Joint -->
121                                <Shape>
122                                     <Appearance USE='axis'/>
123                                     <Cylinder height='0.4radius='0.15'/>
124                                </Shape>
125                           </Transform>
126                           <Transform rotation='1 0 0 1.57scale='0.7 0.7 0.7translation='0 1 1.2'>
127                                <!-- upper horizontal axle -->
128                                <Shape>
129                                     <Appearance USE='axis'/>
130                                     <Cylinder height='0.9radius='0.1'/>
131                                </Shape>
132                           </Transform>
133                      </Transform>
134                 </Group>
135            </Transform>
136       </Scene>
137  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: axis, black, Clock, front_wheel, Hub, inside_wheel, mainAxle, WheelInterpolator, WheelsFrontAxleTransform, WheelTouchSensor, WheelTransform, white
-->
X3D Tooltips element index: Appearance, Cylinder, Extrusion, Group, head, Inline, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, TimeSensor, TouchSensor, Transform, 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.

WheelTouchSensor
TouchSensor
isOver
SFBool

ROUTE
event to
(1)
Clock
TimeSensor
set_enabled
SFBool
then
 
 
 
Clock
TimeSensor
fraction_changed
SFFloat

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

ROUTE
event to
(3)
WheelTransform
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/AircraftFixedWing/F16FightingFalconTurkey/FrontWheelIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/FrontWheel.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. -->