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='title' content=' TightDoorAft.x3d '/> |
6 | <meta name='description' content='Brazilian Naval Academy Training Ship'/> |
7 | <meta name='creator' content='Claudio Coreixas'/> |
8 | <meta name='created' content='20 October 2009'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='reference' content='http://www.en.mar.mil.br'/> |
11 | <meta name='subject' content='ships parts'/> |
12 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/TightDoorAft.x3d '/> |
13 | <meta name='generator' content='X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
14 | <meta name='license' content='../../license.html'/> |
15 | </head> |
16 | <Scene> |
17 | <WorldInfo title='TightDoorAft.x3d'/> |
18 | <Viewpoint description='Door' fieldOfView='0.45' orientation='1 0 0 0' position='0 0 1'/> |
19 |
<!-- ROUTE information for spinTimer node:
[from dogSensor.touchTime to startTime
]
[from dogSensor2.touchTime to startTime
]
[from fraction_changed to openDoor.set_fraction
]
-->
<TimeSensor DEF='spinTimer' cycleInterval='3'/> |
20 |
<!-- ROUTE information for openDoor node:
[from spinTimer.fraction_changed to set_fraction
]
[from value_changed to openDoorTransform.rotation
]
-->
<OrientationInterpolator DEF='openDoor' key='0 0.25 0.5 0.75 1' keyValue='0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1.57 0 0 1 2.8'/> |
21 | < ROUTE fromNode='spinTimer' fromField='fraction_changed' toNode='openDoor' toField='set_fraction'/> |
22 |
<!-- ROUTE information for dogTimer node:
[from dogSensor.touchTime to startTime
]
[from dogSensor2.touchTime to startTime
]
[from fraction_changed to openDog.set_fraction
]
[from fraction_changed to openDog2.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='openDog' key='0 1' keyValue='0 1 0 0 0 1 0 1.3'/> |
24 | < ROUTE fromNode='dogTimer' fromField='fraction_changed' toNode='openDog' toField='set_fraction'/> |
25 |
<!-- ROUTE information for openDog2 node:
[from dogTimer.fraction_changed to set_fraction
]
[from value_changed to openDogSpin2.rotation
]
-->
<OrientationInterpolator DEF='openDog2' key='0 1' keyValue='0 1 0 0 0 1 0 -1.3'/> |
26 | < ROUTE fromNode='dogTimer' fromField='fraction_changed' toNode='openDog2' toField='set_fraction'/> |
27 |
<!-- ROUTE information for openDoorTransform node:
[from openDoor.value_changed to rotation
]
-->
<Transform DEF='openDoorTransform' center='-0.1 0 0'> |
28 | < ROUTE fromNode='openDoor' fromField='value_changed' toNode='openDoorTransform' toField='rotation'/> |
29 |
<!-- ROUTE information for openDogSpin node:
[from openDog.value_changed to rotation
]
-->
<Transform DEF='openDogSpin' center='0.07 0.01 -0.1'> |
30 | < ROUTE fromNode='openDog' fromField='value_changed' toNode='openDogSpin' toField='rotation'/> |
31 | <Transform translation='0.07 0.01 -0.1'> |
32 | <Transform rotation='1 0 0 1.57'> |
33 | |
34 | <Appearance> |
35 | <Material diffuseColor='0.4 0.4 0.4'/> |
36 | </Appearance> |
37 | <Extrusion ccw='false' convex='false' crossSection='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 0' scale='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.5' solid='false' spine='-0.069 0 0.017 -0.01 0 0.017 -0.0062 0 0.0162 -0.0029 0 0.0141 -0.0008 0 0.0109 0 0 0.007 0 0 -0.007 -0.0008 0 -0.0108 -0.0029 0 -0.0141 -0.0062 0 -0.0162 -0.01 0 -0.017 -0.069 0 -0.017'/> |
38 | </Shape> |
39 | </Transform> |
40 |
<!-- ROUTE information for dogSensor node:
[from touchTime to spinTimer.startTime
]
[from touchTime to dogTimer.startTime
]
-->
<TouchSensor DEF='dogSensor' description='Touch to Open Hatch'/> |
41 | < ROUTE fromNode='dogSensor' fromField='touchTime' toNode='spinTimer' toField='startTime'/> |
42 | < ROUTE fromNode='dogSensor' fromField='touchTime' toNode='dogTimer' toField='startTime'/> |
43 | </Transform> |
44 | </Transform> |
45 |
<!-- ROUTE information for openDogSpin2 node:
[from openDog2.value_changed to rotation
]
-->
<Transform DEF='openDogSpin2' center='0.07 0.01 0.1'> |
46 | < ROUTE fromNode='openDog2' fromField='value_changed' toNode='openDogSpin2' toField='rotation'/> |
47 | <Transform translation='0.07 0.01 0.1'> |
48 | <Transform rotation='1 0 0 1.57'> |
49 | <Shape USE='dog'/> |
50 | </Transform> |
51 |
<!-- ROUTE information for dogSensor2 node:
[from touchTime to spinTimer.startTime
]
[from touchTime to dogTimer.startTime
]
-->
<TouchSensor DEF='dogSensor2' description='Touch to Open Hatch'/> |
52 | < ROUTE fromNode='dogSensor2' fromField='touchTime' toNode='spinTimer' toField='startTime'/> |
53 | < ROUTE fromNode='dogSensor2' fromField='touchTime' toNode='dogTimer' toField='startTime'/> |
54 | </Transform> |
55 | </Transform> |
56 | <Shape DEF='TightDoor'> |
57 | <Appearance> |
58 | <Material diffuseColor='0.82 0.78 0.74'/> |
59 | </Appearance> |
60 | <IndexedFaceSet DEF='pipeIFS' convex='false' creaseAngle='1.5' solid='false' coordIndex='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 82 83 84 -1'> |
61 | <Coordinate point='0.0000 0.0000 0.0000 0.1000 0.0000 0.1500 0.0962 0.0000 0.1691 0.0854 0.0000 0.1853 0.0692 0.0000 0.1962 0.0500 0.0000 0.2000 -0.0500 0.0000 0.2000 -0.0691 0.0000 0.1962 -0.0853 0.0000 0.1854 -0.0962 0.0000 0.1692 -0.1000 0.0000 0.1501 -0.1000 0.0000 -0.1499 -0.0962 0.0000 -0.1691 -0.0854 0.0000 -0.1853 -0.0692 0.0000 -0.1962 -0.0501 0.0000 -0.2000 0.0499 0.0000 -0.2000 0.0690 0.0000 -0.1962 0.0853 0.0000 -0.1855 0.0961 0.0000 -0.1693 0.1000 0.0000 -0.1502 0.0962 0.0038 0.1500 0.0927 0.0038 0.1677 0.0827 0.0038 0.1827 0.0677 0.0038 0.1927 0.0500 0.0038 0.1962 -0.0500 0.0038 0.1962 -0.0676 0.0038 0.1927 -0.0826 0.0038 0.1827 -0.0927 0.0038 0.1677 -0.0962 0.0038 0.1501 -0.0962 0.0038 -0.1499 -0.0927 0.0038 -0.1676 -0.0827 0.0038 -0.1826 -0.0678 0.0038 -0.1926 -0.0501 0.0038 -0.1962 0.0499 0.0038 -0.1962 0.0676 0.0038 -0.1927 0.0826 0.0038 -0.1828 0.0926 0.0038 -0.1678 0.0962 0.0038 -0.1501 0.0854 0.0071 0.1500 0.0827 0.0071 0.1635 0.0750 0.0071 0.1750 0.0636 0.0071 0.1827 0.0500 0.0071 0.1854 -0.0500 0.0071 0.1854 -0.0635 0.0071 0.1827 -0.0750 0.0071 0.1750 -0.0827 0.0071 0.1636 -0.0854 0.0071 0.1501 -0.0854 0.0071 -0.1499 -0.0827 0.0071 -0.1635 -0.0751 0.0071 -0.1750 -0.0636 0.0071 -0.1826 -0.0501 0.0071 -0.1854 0.0499 0.0071 -0.1854 0.0635 0.0071 -0.1827 0.0749 0.0071 -0.1751 0.0826 0.0071 -0.1636 0.0854 0.0071 -0.1501 0.0692 0.0092 0.1500 0.0677 0.0092 0.1573 0.0636 0.0092 0.1635 0.0573 0.0092 0.1677 0.0500 0.0092 0.1692 -0.0500 0.0092 0.1692 -0.0573 0.0092 0.1677 -0.0635 0.0092 0.1636 -0.0677 0.0092 0.1574 -0.0692 0.0092 0.1500 -0.0692 0.0092 -0.1500 -0.0677 0.0092 -0.1573 -0.0636 0.0092 -0.1635 -0.0574 0.0092 -0.1677 -0.0500 0.0092 -0.1692 0.0500 0.0092 -0.1692 0.0573 0.0092 -0.1677 0.0635 0.0092 -0.1636 0.0677 0.0092 -0.1574 0.0692 0.0092 -0.1501 0.0500 0.0100 0.1500 -0.0500 0.0100 0.1500 0.0500 0.0100 -0.1500 0.0500 0.0100 -0.1500'/> |
62 | </IndexedFaceSet> |
63 | </Shape> |
64 | </Transform> |
65 | </Scene> |
66 | </X3D> |
Event Graph ROUTE Table entries with 10 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 |
spinTimer
TimeSensor startTime SFTime |
then
|
spinTimer
TimeSensor fraction_changed SFFloat |
openDoor
OrientationInterpolator set_fraction SFFloat |
then
|
openDoor
OrientationInterpolator value_changed SFRotation |
openDoorTransform
Transform rotation SFRotation |
|||
dogSensor
TouchSensor touchTime SFTime |
dogTimer
TimeSensor startTime SFTime |
then
|
dogTimer
TimeSensor fraction_changed SFFloat |
openDog
OrientationInterpolator set_fraction SFFloat |
then
|
openDog
OrientationInterpolator value_changed SFRotation |
openDogSpin
Transform rotation SFRotation |
|||
then
|
dogTimer
TimeSensor fraction_changed SFFloat |
openDog2
OrientationInterpolator set_fraction SFFloat |
then
|
openDog2
OrientationInterpolator value_changed SFRotation |
openDogSpin2
Transform rotation SFRotation |
dogSensor2
TouchSensor touchTime SFTime |
spinTimer
TimeSensor startTime SFTime |
then
|
spinTimer
TimeSensor fraction_changed SFFloat |
openDoor
OrientationInterpolator set_fraction SFFloat |
then
|
openDoor
OrientationInterpolator value_changed SFRotation |
openDoorTransform
Transform rotation SFRotation |
|||
dogSensor2
TouchSensor touchTime SFTime |
dogTimer
TimeSensor startTime SFTime |
then
|
dogTimer
TimeSensor fraction_changed SFFloat |
openDog
OrientationInterpolator set_fraction SFFloat |
then
|
openDog
OrientationInterpolator value_changed SFRotation |
openDogSpin
Transform rotation SFRotation |
|||
then
|
dogTimer
TimeSensor fraction_changed SFFloat |
openDog2
OrientationInterpolator set_fraction SFFloat |
then
|
openDog2
OrientationInterpolator value_changed SFRotation |
openDogSpin2
Transform 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.
-->