<?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='Immersive' version='3.3'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
<head>
</head>
<!--
-->
X3D Tooltips element index:
Appearance,
Box,
connect,
Cylinder,
field,
fieldValue,
head,
IS,
Material,
meta,
NavigationInfo,
ProtoBody,
ProtoDeclare,
ProtoInstance,
ProtoInterface,
Scene,
Shape,
Transform,
Transform,
WorldInfo,
X3D,
accessType and
type,
XML data types,
field types
<Scene>
<WorldInfo title='Prototype.x3d'/>
<ProtoDeclare name='TwoColorTable'>
<ProtoInterface>
<field name='legColor' type='SFColor' value='.8 .4 .7' accessType='initializeOnly'/>
<field name='topColor' type='SFColor' value='.6 .6 .1' accessType='initializeOnly'/>
</ProtoInterface>
<ProtoBody>
<Transform>
<Transform translation='0.0 0.6 0.0'>
<!-- table top -->
<Shape>
<Appearance>
</Appearance>
<Box size='1.2 0.2 1.2'/>
</Shape>
</Transform>
<Transform translation='-0.5 0.0 -0.5'>
<!-- first table leg -->
<Shape DEF='Leg'>
<Appearance>
<Material DEF='LegMaterial' diffuseColor='1.0 0.0 0.0'>
<IS>
<connect nodeField='diffuseColor' protoField='legColor'/>
</IS>
</Material>
</Appearance>
<Cylinder height='1.0' radius='0.1'/>
</Shape>
</Transform>
<Transform translation='0.5 0.0 -0.5'>
<!-- another table leg -->
<Shape USE='Leg'/>
</Transform>
<Transform translation='-0.5 0.0 0.5'>
<Shape USE='Leg'/>
<!-- another table leg -->
</Transform>
<Transform translation='0.5 0.0 0.5'>
<Shape USE='Leg'/>
<!-- another table leg -->
</Transform>
<!-- End of root Transform's children -->
</Transform>
<!-- End of root Transform -->
</ProtoBody>
</ProtoDeclare>
<!-- End of prototype -->
<!-- The prototype is now defined. Although it contains a number of nodes, only the legColor and topColor fields are public. Instead of using the default legColor and topColor, this instance of the table has red legs and a green top: -->
<ProtoInstance name='TwoColorTable'>
<fieldValue name='legColor' value='1 0 0'/>
<fieldValue name='topColor' value='0 1 0'/>
</ProtoInstance>
<NavigationInfo type='"EXAMINE"'/>
<!-- Use the Examine viewer -->
</Scene>
</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)
<ProtoInstance
name='ProtoName'>
<field
name='fieldName'/> </ProtoInstance>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->