<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Interchange' version='3.0'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation
='
https://www.web3d.org/specifications/x3d-3.0.xsd
'>
<head>
</head>
<!--
-->
<Scene>
<WorldInfo title='Figure13_17bMorphingCubeLineSet.x3d'/>
<Group>
<Shape>
<Appearance>
<!-- Note use of emissiveColor rather than diffuseColor, so that lines will render. -->
<Material emissiveColor='0 1 1'/>
</Appearance>
<!-- Note that coordIndex sets repeat first and last values in order to close each polygon outline. -->
<IndexedLineSet coordIndex='0 1 2 3 0 -1 7 6 5 4 7 -1 0 4 5 1 0 -1 1 5 6 2 1 -1 2 6 7 3 2 -1 3 7 4 0 3 -1'>
</IndexedLineSet>
</Shape>
<!-- ROUTE information for CLOCK node:
[from fraction_changed to CUBE_MORPH.set_fraction
]
-->
<TimeSensor DEF='CLOCK' cycleInterval='4' loop='true'/>
<!-- ROUTE information for CUBE_MORPH node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to CUBE_COORDINATES.set_point
]
-->
<CoordinateInterpolator DEF='CUBE_MORPH' key='0.0 0.5 1.0' keyValue='-1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 -1.0 -1.0 1.0 -1.0 -1.0 -1.0 1.0 1.0 -1.0 1.0 1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.5 1.0 1.5 1.5 1.0 1.5 1.5 1.0 -1.5 -1.5 1.0 -1.5 -0.5 -1.0 0.5 0.5 -1.0 0.5 0.5 -1.0 -0.5 -0.5 -1.0 -0.5 -1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 -1.0 -1.0 1.0 -1.0 -1.0 -1.0 1.0 1.0 -1.0 1.0 1.0 -1.0 -1.0 -1.0 -1.0 -1.0'/>
</Group>
<ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='CUBE_MORPH' toField='set_fraction'/>
<ROUTE fromNode='CUBE_MORPH' fromField='value_changed' toNode='CUBE_COORDINATES' toField='set_point'/>
</Scene>
</X3D>
<!--
-->
<!--
Online at https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter13PointsLinesFaces/Figure13_17bMorphingCubeLineSetIndex.html
-->
<!--
Color key:
<X3dNode
DEF='idName' field='value'/>
matches
<XmlElement
DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints.
-->