<?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='Immersive'
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='Figure11_1CafeSignSwitchResolutions.x3d'/>
<Viewpoint description='Cafe sign' position='0 0 8'/>
<!-- Modify the whichChoice value in this Switch to 0, 1 or 2 to see the various versions of the sign. Select whichChoice= -1 to show nothing. here!!! -->
<Switch whichChoice='2'>
<Group DEF='Child0'>
<Shape DEF='CAFE_TEXT_SHAPE'>
<Text string='"Cafe"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
<Appearance DEF='GLOW_WHITE'>
<Material diffuseColor='0 0 0' emissiveColor='1 1 1'/>
</Appearance>
</Shape>
<Transform DEF='BLUE_DISK' rotation='1 0 0 -1.57' translation='0 0.3 -0.1'>
<Shape>
<Cylinder height='0.1' radius='1.3'/>
<Appearance>
</Appearance>
</Shape>
</Transform>
</Group>
<Group DEF='Child1'>
<Shape USE='
CAFE_TEXT_SHAPE'/>
<Transform USE='
BLUE_DISK'/>
<Transform DEF='WHITE_DISK' rotation='1 0 0 -1.57' translation='0 0.3 -0.1'>
<Shape>
<Cylinder height='0.08' radius='1.4'/>
<Appearance USE='
GLOW_WHITE'/>
</Shape>
</Transform>
</Group>
<Group DEF='Child2'>
<Shape USE='
CAFE_TEXT_SHAPE'/>
<Transform USE='
BLUE_DISK'/>
<Transform USE='
WHITE_DISK'/>
<Transform DEF='RED_AND_WHITE_BOXES' translation='0 0.3 -0.1'>
<Shape>
<Box size='4 1.2 0.06'/>
<Appearance>
<Material diffuseColor='0.8 0 0'/>
</Appearance>
</Shape>
<Shape>
<Box size='4.2 1.4 0.04'/>
<Appearance USE='
GLOW_WHITE'/>
</Shape>
</Transform>
</Group>
</Switch>
</Scene>
</X3D>
<!--
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter11Grouping/Figure11_1CafeSignSwitchResolutionsIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter11Grouping/Figure11_1CafeSignSwitchResolutions.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)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->