| 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='title' content=' Rotor.x3d '/> |
| 6 | <meta name='created' content='1 September 2004'/> |
| 7 | <meta name='modified' content='20 October 2019'/> |
| 8 | <meta name='creator' content='Tay Yeong Kiang Winston'/> |
| 9 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/HovercraftSnr6Singapore/Rotor.x3d '/> |
| 10 | <meta name='description' content='Creates the motor rotor with touch sensor for rotating the blades.'/> |
| 11 | <meta name='generator' content='X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 12 | <meta name='license' content='../../license.html'/> |
| 13 | </head> |
| 14 | <Scene> |
| 15 | <WorldInfo title='Rotor.x3d'/> |
| 16 | <Viewpoint description='Rotor Side View' orientation='0 1 0 1.57' position='10 0 0'/> |
| 17 | <Group> |
| 18 |
<!-- ROUTE information for ROTOR_TRANSFORM node:
[from RotorPathInterpolator.value_changed to set_rotation
]
-->
<Transform DEF='ROTOR_TRANSFORM'> |
| 19 | <Group DEF='Rotor'> |
| 20 | <Shape> |
| 21 | <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.00' scale='0.2 0.2 0.15 0.15 0.1 0.1' spine='0 0 0.5 0 0 0.1 0 0 0'/> |
| 22 | <Appearance> |
| 23 | <Material ambientIntensity='0.0' diffuseColor='0.0 0.0 0.0' shininess='0.056122' specularColor='0.918367 0.910614 0.885116'/> |
| 24 | </Appearance> |
| 25 | </Shape> |
| 26 | </Group> |
| 27 | |
| 28 | <Shape> |
| 29 | <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.00' orientation='0 1 0 0 0 1 0 1.2 0 1 0 1.5 0 1 0 1.7' scale='0.05 0.1 0.05 0.15 0.05 0.15 0.05 0.15' spine='0 0 0.1 0 0.6 0.1 0 2 0.1 0 2.5 0.1'/> |
| 30 | <Appearance> |
| 31 | <Material ambientIntensity='0.0' diffuseColor='0.0 0.0 0.0' shininess='0.056122' specularColor='0.918367 0.910614 0.885116'/> |
| 32 | </Appearance> |
| 33 | </Shape> |
| 34 | </Group> |
| 35 | <Transform rotation='0 0 1 1.57'> |
| 36 | <Group USE='Blade'/> |
| 37 | </Transform> |
| 38 | <Transform rotation='0 0 1 -1.57'> |
| 39 | <Group USE='Blade'/> |
| 40 | </Transform> |
| 41 | <Transform rotation='0 0 1 3.14'> |
| 42 | <Group USE='Blade'/> |
| 43 | </Transform> |
| 44 | </Transform> |
| 45 |
<!-- ROUTE information for MyTouchSensor node:
[from touchTime to CLOCK.set_startTime
]
-->
<TouchSensor DEF='MyTouchSensor' description='click to start'/> |
| 46 |
<!-- ROUTE information for CLOCK node:
[from MyTouchSensor.touchTime to set_startTime
]
[from fraction_changed to RotorPathInterpolator.set_fraction
]
-->
<TimeSensor DEF='CLOCK' cycleInterval='4'/> |
| 47 |
<!-- ROUTE information for RotorPathInterpolator node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to ROTOR_TRANSFORM.set_rotation
]
-->
<OrientationInterpolator DEF='RotorPathInterpolator' key='0 0.5 1' keyValue='0.0 0.0 1.0 0.0 0.0 0.0 1.0 3.14 0.0 0.0 1.0 6.28'/> |
| 48 | </Group> |
| 49 | < ROUTE fromNode='MyTouchSensor' fromField='touchTime' toNode='CLOCK' toField='set_startTime'/> |
| 50 | < ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='RotorPathInterpolator' toField='set_fraction'/> |
| 51 | < ROUTE fromNode='RotorPathInterpolator' fromField='value_changed' toNode='ROTOR_TRANSFORM' toField='set_rotation'/> |
| 52 | </Scene> |
| 53 | </X3D> |
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 |
CLOCK
TimeSensor set_startTime SFTime |
then
|
CLOCK
TimeSensor fraction_changed SFFloat |
RotorPathInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
RotorPathInterpolator
OrientationInterpolator value_changed SFRotation |
ROTOR_TRANSFORM
Transform set_rotation SFRotation |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->