<?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='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='
http://www.web3d.org/specifications/x3d-3.0.xsd '>
<
head>
</
head>
<!--
-->
<
Scene>
<
ProtoDeclare name='
Chair'>
<
ProtoInterface>
<
field name='
diffuseColor'
type='
SFColor'
value='
0.7 0.7 0.4'
accessType='
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='
diffuseColor'
protoField='
diffuseColor'/>
</
IS>
</
Material>
</
Appearance>
<
Extrusion creaseAngle='
1.57'
crossSection='
0 0 2 0 2.3 0.3 2.4 0.4 2.5 0.5 2.5 1 0 1 0 0'
spine='
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.14'
translation='
0 -1 -0.5'>
<!-- back -->
<
Shape>
<
Appearance USE='
chair_color'/>
<
Extrusion creaseAngle='
1.57'
crossSection='
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 0'
scale='
1.4 1 2 1'
spine='
0 0 0 0 4 0'/>
</
Shape>
</
Transform>
<!--
seat_rotation ROUTE:
[
from rotation_changed to seat.set_rotation
]
-->
<
CylinderSensor DEF='
seat_rotation'
description='
swivel chair'/>
</
Transform>
<
Transform rotation='
1 0 0 1.57'>
<!-- foot -->
<
Shape>
<
Appearance USE='
chair_color'/>
<
Extrusion beginCap='
false'
convex='
false'
creaseAngle='
1.57'
crossSection='
0 0 0.2 0 0.23 2 0.28 3 1 3.3 1.5 3.5 0 3.5 0 0'
endCap='
false'
spine='
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_rotation'
fromField='
rotation_changed'
toNode='
seat'
toField='
set_rotation'/>
</
ProtoBody>
</
ProtoDeclare>
<
ProtoInstance name='
Chair'
DEF='
chaise'
containerField='
children'/>
</
Scene>
</X3D>
<!--
-->
<!-- Tag color codes:
<Node
DEF='idName' attribute='value'/>
<Prototype
name='ProtoName'>
<field
name='fieldName'/> </Prototype> -->