X3D Model Documentation: Vector.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <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'>
  4       <head>
  5            <meta name='titlecontent='Vector.x3d'/>
  6            <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.'/>
  7            <meta name='creatorcontent='David R. Nadeau'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='1 July 1998'/>
 10            <meta name='translatedcontent='2 February 2014'/>
 11            <meta name='modifiedcontent='20 October 2019'/>
 12            <meta name='referencecontent='VectorField1.x3d'/>
 13            <meta name='referencecontent='originals/vector.wrl'/>
 14            <meta name='referencecontent='http://www.siggraph.org/s98'/>
 15            <meta name='referencecontent='http://www.siggraph.org/s98/conference/courses/18.html'/>
 16            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0496.htm'/>
 17            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/>
 18            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 19            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Vector.x3d'/>
 20            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 21            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 22            <meta name='licensecontent='../license.html'/>
 23       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF node: flatArrow

Index for ProtoDeclare definition: Vector
-->
 24       <Scene>
 25            <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"title='Vector'/>
 26            <ProtoDeclare name='Vector'>
 27                 <ProtoInterface>
 28                      <field name='colortype='SFColorvalue='0.8 0.8 0.8accessType='initializeOnly'/>
 29                      <field name='rotationtype='SFRotationvalue='0.0 1.0 0.0 0.0accessType='initializeOnly'/>
 30                      <field name='scaletype='SFVec3fvalue='1.0 1.0 1.0accessType='initializeOnly'/>
 31                      <field name='translationtype='SFVec3fvalue='0.0 0.0 0.0accessType='initializeOnly'/>
 32                 </ProtoInterface>
 33                 <ProtoBody>
 34                      <Transform>
 35                           <IS>
 36                                <connect nodeField='translationprotoField='translation'/>
 37                                <connect nodeField='scaleprotoField='scale'/>
 38                                <connect nodeField='rotationprotoField='rotation'/>
 39                           </IS>
 40 
                         <!-- Shape flatArrow is a DEF node that has 1 USE node: USE_1 -->
                         <Shape DEF='flatArrow'>
 41                                <Appearance>
 42                                     <Material ambientIntensity='0.0diffuseColor='0.0 0.0 0.0'>
 43                                          <IS>
 44                                               <connect nodeField='emissiveColorprotoField='color'/>
 45                                          </IS>
 46                                     </Material>
 47                                </Appearance>
 48                                <IndexedFaceSet solid='falsecoordIndex='0 1 2 3 0 -1 4 5 6 4'>
 49                                     <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'/>
 50                                </IndexedFaceSet>
 51                           </Shape>
 52                           <Transform rotation='0.0 1.0 0.0 1.57'>
 53                                <Shape USE='flatArrow'/>
 54                           </Transform>
 55                      </Transform>
 56                 </ProtoBody>
 57            </ProtoDeclare>
 58            <!-- Display scene instructions for viewing an example scene with a corresponding prototype instance -->
 59            <Background skyColor='0 0.333333 0.66667'/>
 60            <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" '>
 61                 <Shape>
 62                      <Text string='"The Vector.x3d scene holds" "a prototype declaration" "" "Select this text to view example usage" "in VectorField1.x3d scene"'>
 63                           <FontStyle justify='"MIDDLE" "MIDDLE"style='BOLD'/>
 64                      </Text>
 65                      <Appearance>
 66                           <Material diffuseColor='1 0.9 0.4'/>
 67                      </Appearance>
 68                 </Shape>
 69                 <!-- Invisible box behind text makes selection easier -->
 70                 <Shape>
 71                      <Box size='12 5 0.1'/>
 72                      <Appearance>
 73                           <Material transparency='1'/>
 74                      </Appearance>
 75                 </Shape>
 76            </Anchor>
 77       </Scene>
 78  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF node: flatArrow

Index for ProtoDeclare definition: Vector
-->
X3D Tooltips element index: Anchor, Appearance, Background, Box, connect, Coordinate, field, FontStyle, head, IndexedFaceSet, IS, Material, meta, ProtoBody, ProtoDeclare, ProtoInterface, Scene, Shape, Text, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.


Anchor
description='select text to view parent scene' 
User-interaction hint for this node. 
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/VectorIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Vector.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)
    <ProtoDeclare name='ProtoName'> <field name='fieldName'/> </ProtoDeclare> -->

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