<?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 profile='Immersiveversion='3.0xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='Chair.x3d'/>
<meta name='descriptioncontent='A chair for a room, modeled as a Prototype for reuse.'/>
<meta name='creatorcontent='Frederic Roussille'/>
<meta name='createdcontent='1 April 2001'/>
<meta name='modifiedcontent='27 December 2002'/>
<meta name='warningcontent='debug wrong-sided polygons'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Chair.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../license.html'/>
</head>
<!--

Index for ProtoDeclare definition: Chair
Index for DEF nodes: chair_color, chaise, color, seat, seat_rotation
-->
<Scene>
<ProtoDeclare name='Chair'>
<ProtoInterface>
<field name='diffuseColortype='SFColorvalue='0.7 0.7 0.4accessType='inputOutput'/>
</ProtoInterface>
<ProtoBody>
<Group>
<!-- seat ROUTE:  [from seat_rotation.rotation_changed to set_rotation ] -->
<Transform DEF='seat'>
<Transform rotation='1 0 0 1.57'>
<!-- seat -->
<Shape>
<Appearance DEF='chair_color'>
<Material DEF='color'>
<IS>
<connect nodeField='diffuseColorprotoField='diffuseColor'/>
</IS>
</Material>
</Appearance>
<Extrusion creaseAngle='1.57crossSection='0 0 2 0 2.3 0.3 2.4 0.4 2.5 0.5 2.5 1 0 1 0 0spine='1 0 0 0.92 -0.38 0 0.71 -0.71 0 0.38 -0.92 0 0 -1 0 -0.38 -0.92 0 -0.71 -0.71 0 -0.92 -0.38 0 -1 0 0 -0.92 0.38 0 -0.71 0.71 0 -0.38 0.92 0 0 1 0 0.38 0.92 0 0.71 0.71 0 0.92 0.38 0 1 0 0'/>
</Shape>
</Transform>
<Transform rotation='0 1 0 3.14translation='0 -1 -0.5'>
<!-- back -->
<Shape>
<Appearance USE='chair_color'/>
<Extrusion creaseAngle='1.57crossSection='1 0 0.8 0 0.736 0.304 0.568 0.568 0.304 0.736 0 0.8 -0.304 0.736 -0.568 0.568 -0.736 0.304 -0.8 0 -1 0 -0.92 0.38 -0.71 0.71 -0.38 0.92 0 1 0.38 0.92 0.71 0.71 0.92 0.38 1 0 0.8 0scale='1.4 1 2 1spine='0 0 0 0 4 0'/>
</Shape>
</Transform>
<!-- seat_rotation ROUTE:  [from rotation_changed to seat.set_rotation ] -->
<CylinderSensor DEF='seat_rotationdescription='swivel chair'/>
</Transform>
<Transform rotation='1 0 0 1.57'>
<!-- foot -->
<Shape>
<Appearance USE='chair_color'/>
<Extrusion beginCap='falseconvex='falsecreaseAngle='1.57crossSection='0 0 0.2 0 0.23 2 0.28 3 1 3.3 1.5 3.5 0 3.5 0 0endCap='falsespine='0.1 0 0 0.092 -0.038 0 0.071 -0.071 0 0.038 -0.092 0 0 -0.1 0 -0.038 -0.092 0 -0.071 -0.071 0 -0.092 -0.038 0 -0.1 0 0 -0.092 0.038 0 -0.071 0.071 0 -0.038 0.092 0 0 0.1 0 0.038 0.092 0 0.071 0.071 0 0.092 0.038 0 0.1 0 0'/>
</Shape>
</Transform>
</Group>
<ROUTE fromNode='seat_rotationfromField='rotation_changedtoNode='seattoField='set_rotation'/>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name='ChairDEF='chaisecontainerField='children'/>
</Scene>
</X3D>
<!--

Index for ProtoDeclare definition: Chair
Index for DEF nodes: chair_color, chaise, color, seat, seat_rotation
-->

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->