<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<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
'>
<head>
</head>
<!--
Index for DEF nodes
:
ColorNodeExample,
CoordinateNodeExample,
CylinderRod,
PistonClock,
PistonPath,
PistonTransform,
PumpHouseAppearance,
Rocker1Path,
Rocker1Rotation,
Rocker2Path,
Rocker2Rotation,
RockerArm1,
RockerArm2
Index for Viewpoint image
:
Viewpoint_1
-->
<Scene>
<WorldInfo title='Color.x3d'/>
<Background skyColor='1 1 1'/>
<Viewpoint description='Book View' orientation='0 -1 0 0.53' position='-2.28 0.29 4.06'/>
<Group>
<Shape>
<Appearance DEF='PumpHouseAppearance'>
<Material diffuseColor='0.82 0.78 0.74'/>
</Appearance>
<IndexedFaceSet colorIndex='0 0 0 0 -1 0 0 1 1 -1 1 1 1 1 -1 1 0 0 1 -1 0 0 1 1 -1 1 1 1 -1 0 0 1 1 -1 0 0 1 1 -1 1 1 1 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 1 1 1 1 -1 1 1 1 1 -1' coordIndex='0 1 5 4 -1 5 1 2 6 -1 6 2 3 7 -1 3 0 4 7 -1 1 12 13 2 -1 2 13 14 -1 12 15 16 13 -1 15 0 3 16 -1 16 3 17 -1 9 5 6 10 -1 8 9 10 11 -1 4 8 11 7 -1 4 5 9 8 -1 11 10 6 7 -1 3 2 14 17 -1 13 16 17 14 -1'>
<Coordinate DEF='CoordinateNodeExample' point='0.0 0.0 0.0 2.0 0.0 0.0 2.0 1.75 0.0 0.0 1.75 0.0 0.625 0.75 0.0 1.0 0.75 0.0 1.0 1.6 0.0 0.625 1.6 0.0 0.625 0.75 -0.65 1.0 0.75 -0.65 1.0 1.6 -0.65 0.625 1.6 -0.65 2.0 0.0 -2.7 2.0 1.75 -2.7 2.0 2.5 -1.0 0.0 0.0 -2.7 0.0 1.75 -2.7 0.0 2.5 -1.0'/>
<Color DEF='ColorNodeExample' color='.82 .78 .74 .66 .37 .02'/>
</IndexedFaceSet>
</Shape>
<Transform scale='0.91 0.6 0.3' translation='0.8 -0.65 0.5'>
<Shape>
<Appearance>
<Material diffuseColor='0.749 0.694 0.651'/>
</Appearance>
<Cylinder bottom='false' top='false'/>
</Shape>
</Transform>
</Group>
<Group>
<Transform scale='0.5 0.5 0.5' translation='1.0 1.1 -1.5'>
</Transform>
</Group>
<ROUTE fromNode='PistonClock' fromField='fraction_changed' toNode='PistonPath' toField='set_fraction'/>
<ROUTE fromNode='PistonPath' fromField='value_changed' toNode='PistonTransform' toField='set_translation'/>
<ROUTE fromNode='PistonClock' fromField='fraction_changed' toNode='Rocker1Path' toField='set_fraction'/>
<ROUTE fromNode='Rocker1Path' fromField='value_changed' toNode='RockerArm1' toField='set_translation'/>
<ROUTE fromNode='PistonClock' fromField='fraction_changed' toNode='Rocker1Rotation' toField='set_fraction'/>
<ROUTE fromNode='Rocker1Rotation' fromField='value_changed' toNode='RockerArm1' toField='set_rotation'/>
<ROUTE fromNode='PistonClock' fromField='fraction_changed' toNode='Rocker2Path' toField='set_fraction'/>
<ROUTE fromNode='Rocker2Path' fromField='value_changed' toNode='RockerArm2' toField='set_translation'/>
<ROUTE fromNode='PistonClock' fromField='fraction_changed' toNode='Rocker2Rotation' toField='set_fraction'/>
<ROUTE fromNode='Rocker2Rotation' fromField='value_changed' toNode='RockerArm2' toField='set_rotation'/>
</Scene>
</X3D>
<!--
Index for DEF nodes
:
ColorNodeExample,
CoordinateNodeExample,
CylinderRod,
PistonClock,
PistonPath,
PistonTransform,
PumpHouseAppearance,
Rocker1Path,
Rocker1Rotation,
Rocker2Path,
Rocker2Rotation,
RockerArm1,
RockerArm2
Index for Viewpoint image
:
Viewpoint_1
-->
<!--
Online at https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ColorExampleIndex.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.
-->