<?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>
<meta name='titlecontent='Vector.x3d'/>
<meta name='descriptioncontent='Vector: this world illustrates the use of a Prototype declaration to define a generic vector whose position, orientation, scale, and color are all set by incoming fields. The vector is used by the VectorField1 example to fill a volume with visualization vectors, all pointing different directions and with different colors.'/>
<meta name='creatorcontent='David R. Nadeau'/>
<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='VectorField1.x3d'/>
<meta name='referencecontent='originals/vector.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/mt0496.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/Vector.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>
<!--

Index for ProtoDeclare definition : Vector

Index for DEF node : flatArrow
-->
<Scene>
<WorldInfo info='"Copyright (c) 1997, David R. Nadeau"title='Vector'/>
<ProtoDeclare name='Vector'>
<ProtoInterface>
<field name='colortype='SFColorvalue='0.8 0.8 0.8accessType='initializeOnly'/>
<field name='rotationtype='SFRotationvalue='0.0 1.0 0.0 0.0accessType='initializeOnly'/>
<field name='scaletype='SFVec3fvalue='1.0 1.0 1.0accessType='initializeOnly'/>
<field name='translationtype='SFVec3fvalue='0.0 0.0 0.0accessType='initializeOnly'/>
</ProtoInterface>
<ProtoBody>
<Transform>
<IS>
<connect nodeField='translationprotoField='translation'/>
<connect nodeField='scaleprotoField='scale'/>
<connect nodeField='rotationprotoField='rotation'/>
</IS>
<Shape DEF='flatArrow'>
<Appearance>
<Material ambientIntensity='0.0diffuseColor='0.0 0.0 0.0'>
<IS>
<connect nodeField='emissiveColorprotoField='color'/>
</IS>
</Material>
</Appearance>
<IndexedFaceSet solid='falsecoordIndex='0 1 2 3 0 -1 4 5 6 4'>
<Coordinate point='-0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.75 0.0 -0.1 0.75 0.0 -0.25 0.75 0.0 0.25 0.75 0.0 0.0 1.0 0.0'/>
</IndexedFaceSet>
</Shape>
<Transform rotation='0.0 1.0 0.0 1.57'>
<Shape USE='flatArrow'/>
</Transform>
</Transform>
</ProtoBody>
</ProtoDeclare>
<!-- Display scene instructions for viewing an example scene with a corresponding prototype instance -->
<Background skyColor='0 0.333333 0.66667'/>
<Anchor description='select text to view parent scene'
  url=' "VectorField1.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/VectorField1.x3d" "VectorField1.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/VectorField1.wrl" '>
<Shape>
<Text string='"The Vector.x3d scene holds" "a prototype declaration" "" "Select this text to view example usage" "in VectorField1.x3d scene"'>
<FontStyle justify='"MIDDLE" "MIDDLE"style='BOLD'/>
</Text>
<Appearance>
<Material diffuseColor='1 0.9 0.4'/>
</Appearance>
</Shape>
<!-- Invisible box behind text makes selection easier -->
<Shape>
<Box size='12 5 0.1'/>
<Appearance>
<Material transparency='1'/>
</Appearance>
</Shape>
</Anchor>
</Scene>
</X3D>
<!--

Index for ProtoDeclare definition : Vector

Index for DEF node : flatArrow
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

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