<?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='Interactive'  version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.3.xsd ' >
<head>
<meta name='titlecontent='Nested.x3d'/>
<meta name='descriptioncontent='Multiple nested sensors: this world illustrates the use of nested sensors where one sensor covers shapes in an inner Transform group, and another sensor covers shapes in an outer Transform group.'/>
<meta name='creatorcontent='John L. Moreland'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='1 July 1998'/>
<meta name='translatedcontent='2 February 2014'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent='originals/nested.wrl'/>
<meta name='referencecontent=' http://www.siggraph.org/s98 '/>
<meta name='referencecontent=' http://www.siggraph.org/s98/conference/courses/18.html '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0172.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Nested.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: Appear, Block, Segment1Ss, Segment1Tf, Segment2Ss, Segment2Tf, TopTf

Index for Viewpoint node: Viewpoint_1
-->
<Scene>
<WorldInfo info='"Copyright (c) 1998, John L. Moreland"title='Nested sensors'/>
<NavigationInfo/>
<Viewpoint description='Entry vieworientation='1.0 0.0 0.0 -0.25position='0.0 1.0 2.0'/>
<Transform DEF='TopTf'>
<!-- ROUTE information for Segment1Tf node:  [from Segment1Ss.rotation_changed to set_rotation ] -->
<Transform DEF='Segment1Tfcenter='0.0 -0.25 0.0translation='0.0 0.25 0.0'>
<!-- ROUTE information for Segment1Ss node:  [from rotation_changed to Segment1Tf.set_rotation ] -->
<SphereSensor DEF='Segment1Ss'/>

<Transform DEF='Blockscale='0.1 0.5 0.1'>
<Shape>
<Appearance DEF='Appear'>
<Material diffuseColor='1.0 1.0 0.0'/>
</Appearance>
<Sphere radius='0.5'/>
</Shape>
</Transform>
<Transform translation='0.0 0.25 0.0'>
<Shape>
<Appearance USE=' Appear'/>
<Sphere radius='0.05'/>
</Shape>
</Transform>
<!-- ROUTE information for Segment2Tf node:  [from Segment2Ss.rotation_changed to set_rotation ] -->
<Transform DEF='Segment2Tfcenter='0.0 0.25 0.0'>
<!-- ROUTE information for Segment2Ss node:  [from rotation_changed to Segment2Tf.set_rotation ] -->
<SphereSensor DEF='Segment2Ss'/>

<Transform translation='0.0 0.5 0.0'>
<Transform USE=' Block'/>
</Transform>
</Transform>
</Transform>
</Transform>
< ROUTE  fromNode=' Segment1Ss' fromField='rotation_changed' toNode=' Segment1Tf' toField='set_rotation'/>
< ROUTE  fromNode=' Segment2Ss' fromField='rotation_changed' toNode=' Segment2Tf' toField='set_rotation'/>
<Shape>
<Appearance>
<Material/>
</Appearance>
<Box size='2.0 0.02 2.0'/>
</Shape>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: Appear, Block, Segment1Ss, Segment1Tf, Segment2Ss, Segment2Tf, TopTf

Index for Viewpoint node: Viewpoint_1
-->

Event Graph ROUTE Table entries 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.

Segment1Ss
SphereSensor
rotation_changed
SFRotation

ROUTE
event to
(1)
Segment1Tf
Transform
set_rotation
SFRotation


Segment2Ss
SphereSensor
rotation_changed
SFRotation

ROUTE
event to
(1)
Segment2Tf
Transform
set_rotation
SFRotation


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/NestedIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Nested.x3d -->

<!-- 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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->