<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN"   "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D version='3.0profile='Interactivexmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='MovingImagecontent='offset-movie.mpg'/>
<meta name='creatorcontent=' http://www.itl.nist.gov/div897/ctg/vrml/members.html '/>
<meta name='titlecontent='offset.x3d'/>
<meta name='disclaimercontent=' This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology. This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/>
<meta name='translatorcontent='Michael Kass, NIST'/>
<meta name='translatedcontent='21 January 2001'/>
<meta name='modifiedcontent='17 May 2006'/>
<meta name='descriptioncontent='Three Box geometry each have a PlaneSensor associated with them, and each has a different offset value associated with it. The result is, when the geometry is selected by the pointing device, the left Box should translate -1 -1 -2 in X,Y and Z respectively. The center Box has offsets of 0 0 0 each time, and the right Box should translate by 1 1 2 in X,Y and Z. Subsequent indications of the same geometry with the pointing device should cause the Box geometry to reset to its this offset position first before it can be dragged.'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/PlaneSensor/offset.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit, http://www.web3d.org/x3d/content/README.X3D-Edit.html'/>
<meta name='licensecontent='../../license.html'/>
</head>
<!--

Index for DEF nodes: BLUE_BOX, BLUE_SENSOR, GREEN_BOX, GREEN_SENSOR, RED_BOX, RED_SENSOR
-->
<Scene>
<Group>
<!-- RED_BOX ROUTE:  [from RED_SENSOR.translation_changed to translation ] -->
<Transform DEF='RED_BOX'>
<!-- RED_SENSOR ROUTE:  [from translation_changed to RED_BOX.translation ] -->
<PlaneSensor DEF='RED_SENSORautoOffset='falsedescription='click and drag to move object'/>
<Shape>
<Appearance>
<Material diffuseColor='1 0 0'/>
</Appearance>
<Box size='0.5 0.5 0.5'/>
</Shape>
</Transform>
<!-- BLUE_BOX ROUTE:  [from BLUE_SENSOR.translation_changed to translation ] -->
<Transform DEF='BLUE_BOXtranslation='-1 0 0'>
<!-- BLUE_SENSOR ROUTE:  [from translation_changed to BLUE_BOX.translation ] -->
<PlaneSensor DEF='BLUE_SENSORautoOffset='falsedescription='click and drag to move objectoffset='-1 -1 -2'/>
<Shape>
<Appearance>
<Material diffuseColor='0 0 1'/>
</Appearance>
<Box size='0.5 0.5 0.5'/>
</Shape>
</Transform>
<!-- GREEN_BOX ROUTE:  [from GREEN_SENSOR.translation_changed to translation ] -->
<Transform DEF='GREEN_BOXtranslation='1 0 0'>
<!-- GREEN_SENSOR ROUTE:  [from translation_changed to GREEN_BOX.translation ] -->
<PlaneSensor DEF='GREEN_SENSORautoOffset='falsedescription='click and drag to move objectoffset='1 1 2'/>
<Shape>
<Appearance>
<Material diffuseColor='0 1 0'/>
</Appearance>
<Box size='0.5 0.5 0.5'/>
</Shape>
</Transform>
</Group>
<ROUTE fromNode='RED_SENSORfromField='translation_changedtoNode='RED_BOXtoField='translation'/>
<ROUTE fromNode='BLUE_SENSORfromField='translation_changedtoNode='BLUE_BOXtoField='translation'/>
<ROUTE fromNode='GREEN_SENSORfromField='translation_changedtoNode='GREEN_BOXtoField='translation'/>
</Scene>
</X3D>
<!--

Index for DEF nodes: BLUE_BOX, BLUE_SENSOR, GREEN_BOX, GREEN_SENSOR, RED_BOX, RED_SENSOR
-->

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> -->