1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
3 | <X3D profile='Interchange' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
4 | <head> |
5 | <meta name='title' content='MorphingTriangleSet.x3d'/> |
6 | <meta name='description' content='Animated example of a morphing TriangleSet'/> |
7 | <meta name='created' content='1 January 2007'/> |
8 | <meta name='modified' content='27 July 2024'/> |
9 | <meta name='creator' content='Leonard Daly and Don Brutzman'/> |
10 | <meta name='reference' content='https://X3dGraphics.com'/> |
11 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
12 | <meta name='rights' content='Copyright Don Brutzman and Leonard Daly 2007'/> |
13 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
14 | <meta name='identifier' content='https://www.web3.org/x3d/content/examples/X3dForWebAuthors/Chapter13GeometryTrianglesQuadrilaterals/MorphingTriangleSetExample.x3d'/> |
15 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
16 | <meta name='license' content='../license.html'/> |
17 | </head> |
18 | <Scene> |
19 | <WorldInfo title='MorphingTriangleSet.x3d'/> |
20 | <Viewpoint description='Book View - Cube' orientation='-0.742 0.635 0.215 0.81' position='5.71 6.54 7.99'/> |
21 | <Viewpoint description='Book View - Pyramid' orientation='-0.044 0.998 0.037 0.72' position='5.5 1.68 4.41'/> |
22 | <Background skyColor='1 1 1'/> |
23 | <Transform rotation='1 0 0 0'> |
24 | <Shape> |
25 | <TriangleSet ccw='true' colorPerVertex='true' normalPerVertex='true' solid='false' containerField='geometry'> |
26 |
<!-- ROUTE information for Points node:
[from Mover.value_changed to point
]
-->
<Coordinate DEF='Points' point='0 0 0 4 0 0 2 1.15 0 4 0 0 2 3.46 0 2 1.15 0 2 3.46 0 0 0 0 2 1.15 0 0 0 0 4 0 0 2 1.15 1.15 4 0 0 2 1.73 3 2 1.15 1.15 2 1.73 3 0 0 0 2 1.15 1.15 4 0 0 2 3.46 0 3 2.31 1.15 2 3.46 0 2 1.73 3 3 2.31 1.15 2 1.73 3 4 0 0 3 2.31 1.15 2 3.46 0 0 0 0 1 2.31 1.15 0 0 0 2 1.73 3 1 2.31 1.15 2 1.73 3 2 3.46 0 1 2.31 1.15'/> |
27 | <Color color='1 0. 0 0 .8 0 1 .5 0 0 .8 0 0 0. 1 1 .5 0 0 0. 1 1 0. 0 1 .5 0 1. 0. 0. 0. .8 0. 1 0 1 0. .8 0. .7 .3 .4 1 0 1 .7 .3 .4 1. 0. 0. 1 0 1 0. .8 0. 0. 0. 1. 0 1 1 0. 0. 1. .7 .3 .4 0 1 1 .7 .3 .4 0. .8 0. 0 1 1 0. 0. 1. 1. 0. 0. 1 1 0 1. 0. 0. .7 .3 .4 1 1 0 .7 .3 .4 0. 0. 1. 1 1 0'/> |
28 | </TriangleSet> |
29 | </Shape> |
30 | </Transform> |
31 |
<!-- ROUTE information for Timer node:
[from fraction_changed to Mover.set_fraction
]
-->
<TimeSensor DEF='Timer' cycleInterval='30' loop='true' startTime='1'/> |
32 |
<!-- ROUTE information for Mover node:
[from Timer.fraction_changed to set_fraction
]
[from value_changed to Points.point
]
-->
<CoordinateInterpolator DEF='Mover' key='0 .2 .5 .7' keyValue='0 0 0 4 0 0 2 1.15 0 4 0 0 2 3.46 0 2 1.15 0 2 3.46 0 0 0 0 2 1.15 0 0 0 0 4 0 0 2 0.58 0.58 4 0 0 2 1.73 3 2 0.58 0.58 2 1.73 3 0 0 0 2 0.58 0.58 4 0 0 2 3.46 0 3 2.31 0.58 2 3.46 0 2 1.73 3 3 2.31 0.58 2 1.73 3 4 0 0 3 2.31 0.58 2 3.46 0 0 0 0 1 2.31 0.58 0 0 0 2 1.73 3 1 2.31 0.58 2 1.73 3 2 3.46 0 1 2.31 0.58 0 0 0 4 0 0 0 4 0 4 0 0 4 4 0 0 4 0 0 0 4 0 0 0 0 4 0 0 0 0 4 0 0 0 0 4 4 0 0 4 0 4 0 0 4 4 0 4 0 0 4 4 4 4 4 0 0 4 4 0 4 4 4 4 4 0 0 4 4 4 4 4 4 0 4 4 0 0 4 4 4 0 4 4 0 0 4 4 4 4 0 0 4 0 4 4 0 4 0 0 4 4 4 4 0 0 4 0 0 0 0 4 0 0 0 4 0 4 0 0 4 4 0 0 4 0 0 0 4 0 0 0 0 4 0 0 0 0 4 0 0 0 0 4 4 0 0 4 0 4 0 0 4 4 0 4 0 0 4 4 4 4 4 0 0 4 4 0 4 4 4 4 4 0 0 4 4 4 4 4 4 0 4 4 0 0 4 4 4 0 4 4 0 0 4 4 4 4 0 0 4 0 4 4 0 4 0 0 4 4 4 4 0 0 4 0 0 0 0 4 0 0 2 1.15 0 4 0 0 2 3.46 0 2 1.15 0 2 3.46 0 0 0 0 2 1.15 0 0 0 0 4 0 0 2 0.58 0.58 4 0 0 2 1.73 3 2 0.58 0.58 2 1.73 3 0 0 0 2 0.58 0.58 4 0 0 2 3.46 0 3 2.31 0.58 2 3.46 0 2 1.73 3 3 2.31 0.58 2 1.73 3 4 0 0 3 2.31 0.58 2 3.46 0 0 0 0 1 2.31 0.58 0 0 0 2 1.73 3 1 2.31 0.58 2 1.73 3 2 3.46 0 1 2.31 0.58'/> |
33 | < ROUTE fromNode='Timer' fromField='fraction_changed' toNode='Mover' toField='set_fraction'/> |
34 | < ROUTE fromNode='Mover' fromField='value_changed' toNode='Points' toField='point'/> |
35 | </Scene> |
36 | </X3D> |
Event Graph ROUTE Table with 2 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.
Timer
TimeSensor fraction_changed SFFloat |
Mover
CoordinateInterpolator set_fraction SFFloat |
then
|
Mover
CoordinateInterpolator value_changed MFVec3f |
Points
Coordinate point MFVec3f |
<!--
Color 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. -->