X3D Model Documentation: Tire.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=' Tire.x3d '/>
  6            <meta name='descriptioncontent='Tire for MEFFV Vehicles'/>
  7            <meta name='creatorcontent="Converted from Jeffrey D Weekley's Automotive Tire by Sean Hynes"/>
  8            <meta name='createdcontent='12 September 2002'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/MEFFV/Tire.x3d '/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: CAMMIE, HUB, HUBIN, HUBOUT, TIRE, Tire, TireClock, TIREG, TirePathInterpolator, TireTouchSensor, TireTransform
-->
 14       <Scene>
 15            <WorldInfo title='Tire.x3d'/>
 16            <Background skyColor='0.455896 0.749706 0.904409'/>
 17 
          <!-- ROUTE information for TireTransform node:  [from TirePathInterpolator.value_changed to set_rotation ] -->
          <Transform DEF='TireTransform'>
 18                 <Group DEF='TIREG'>
 19                      <Shape DEF='TIRE'>
 20                           <Extrusion DEF='TirebeginCap='falseconvex='falsecreaseAngle='3.14crossSection='0.71 0.00 0.71 -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 -0.92 -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.71 0.38 0.71 0.00endCap='falsespine='2.00 0.0 0.00 1.85 0.0 0.77 1.41 0.0 1.41 0.77 0.0 1.85 0.00 0.0 2.00 -0.77 0.0 1.85 -1.41 0.0 1.41 -1.85 0.0 0.77 -2.00 0.0 0.00 -1.85 0.0 -0.77 -1.41 0.0 -1.41 -0.77 0.0 -1.85 0.00 0.0 -2.00 0.77 0.0 -1.85 1.41 0.0 -1.41 1.85 0.0 -0.77 2.00 0.0 0.00'/>
 21                           <Appearance>
 22                                <Material diffuseColor='0.2 0.2 0.2shininess='0.1'/>
 23                           </Appearance>
 24                      </Shape>
 25                      <Shape DEF='HUB'>
 26                           <Appearance>
 27                                <Material diffuseColor='0.2 0.2 0.2shininess='0.1'/>
 28 
                              <!-- ImageTexture CAMMIE is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                              <ImageTexture DEF='CAMMIE'   url=' "../AAAV/cammie2.jpg " "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/cammie2.jpg " '/>
 29                           </Appearance>
 30                           <Cylinder height='0.8radius='1.3'/>
 31                      </Shape>
 32                      <Shape DEF='HUBOUT'>
 33                           <Appearance>
 34                                <Material diffuseColor='0.2 0.2 0.2shininess='0.1'/>
 35                                <ImageTexture USE='CAMMIE'/>
 36                           </Appearance>
 37                           <Cylinder bottom='falseheight='1.0radius='1.2top='false'/>
 38                      </Shape>
 39                      <Shape DEF='HUBIN'>
 40                           <Appearance>
 41                                <Material diffuseColor='0.2 0.2 0.2shininess='0.1'/>
 42                                <ImageTexture USE='CAMMIE'/>
 43                           </Appearance>
 44                           <Cylinder height='1.2radius='0.4'/>
 45                      </Shape>
 46 
                    <!-- ROUTE information for TireTouchSensor node:  [from isOver to TireClock.set_enabled ] -->
                    <TouchSensor DEF='TireTouchSensor'/>
 47 
                    <!-- ROUTE information for TireClock node:  [from TireTouchSensor.isOver to set_enabled ] [from fraction_changed to TirePathInterpolator.set_fraction ] -->
                    <TimeSensor DEF='TireClockenabled='falseloop='true'/>
 48 
                    <!-- ROUTE information for TirePathInterpolator node:  [from TireClock.fraction_changed to set_fraction ] [from value_changed to TireTransform.set_rotation ] -->
                    <OrientationInterpolator DEF='TirePathInterpolatorkey='0.0 0.5 1.0keyValue='0 1 0 0.0 0 1 0 3.14 0 1 0 6.28'/>
 49                 </Group>
 50            </Transform>
 51            < ROUTE  fromNode='TireTouchSensor' fromField='isOver' toNode='TireClock' toField='set_enabled'/>
 52            < ROUTE  fromNode='TireClock' fromField='fraction_changed' toNode='TirePathInterpolator' toField='set_fraction'/>
 53            < ROUTE  fromNode='TirePathInterpolator' fromField='value_changed' toNode='TireTransform' toField='set_rotation'/>
 54       </Scene>
 55  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: CAMMIE, HUB, HUBIN, HUBOUT, TIRE, Tire, TireClock, TIREG, TirePathInterpolator, TireTouchSensor, TireTransform
-->
X3D Tooltips element index: Appearance, Background, Cylinder, Extrusion, Group, head, ImageTexture, 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.

TireTouchSensor
TouchSensor
isOver
SFBool

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

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

ROUTE
event to
(3)
TireTransform
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/GroundVehicles/MEFFV/TireIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/GroundVehicles/MEFFV/Tire.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. -->