X3D Model Documentation: CoordinateAxesNSEW.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
  3  <X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  4       <head>
  5            <meta name='titlecontent=' CoordinateAxesNSEW.x3d '/>
  6            <meta name='creatorcontent='Don Brutzman, Byounghyun Yoo'/>
  7            <meta name='createdcontent='14 July 2000'/>
  8            <meta name='modifiedcontent='28 November 2019'/>
  9            <meta name='descriptioncontent='X Y Z axis arrows and labels in X3D coordinate system. See CoordinateAxesExample for use as an Inline coordinate-system reference frame.'/>
 10            <meta name='Imagecontent='CoordinateAxesNSEW.png'/>
 11            <meta name='Imagecontent='CoordinateAxesNSEW.WhiteBackground.png'/>
 12            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxesNSEW.x3d '/>
 13            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d '/>
 14            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d '/>
 15            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxesNSEW.x3d '/>
 16            <meta name='referencecontent='https://www.web3d.org/x3d/specifications/ISO-IEC-FDIS-19775-1.2-X3D-AbstractSpecification/Part01/components/geodata.html#GeoLocation'/>
 17            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxesNSEW.x3d '/>
 18            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 19            <meta name='licensecontent='../../license.html'/>
 20       </head>
<!--

<!-- -->
<!-- to top DEF nodes index: ArrowBlue, ArrowCone, ArrowCylinder, ArrowGreen, ArrowRed, Blue, DoNotCollideWithVisualizationWidget, Green, LABEL_APPEARANCE, LABEL_FONT, LABEL_FONT_TOP, Red
-->
 21       <Scene>
 22            <WorldInfo title='CoordinateAxesNSEW.x3d'/>
 23            <Collision DEF='DoNotCollideWithVisualizationWidgetenabled='false'>
 24                 <!-- Invoke CoordinateAxes in other scenes as an Inline child inside a scaling Transform node, at the topmost level of the scene graph. -->
 25                 <!-- This NavigationInfo allows examine mode and will be overridden by any parent scene. -->
 26                 <!-- Each arrow goes from +1m to -1m to allow linear scaling to fit a scene -->
 27                 <!-- Note each label rotates about the scene's vertical Y axis for consistency, enabling local orientation by user -->
 28                 <!-- From X3D Abstract Specification 25.3.3 GeoLocation: "In addition to placing a X3D model at the correct geospatial location, the GeoLocation node will also adjust the orientation of the model appropriately. The standard X3D coordinate system specifies that the +Y axis = up, +Z = out of the screen, and +X = towards the right. The GeoLocation node will set the orientation so that the +Y axis is the up direction for that local area (the normal to the tangent plane on the ellipsoid), -Z points towards the north pole, and +X is east." -->
 29                 <Group>
 30                      <!-- Vertical Y arrow and label -->
 31                      <Group DEF='ArrowGreen'>
 32                           <Shape>
 33 
                              <!-- Cylinder ArrowCylinder is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                              <Cylinder DEF='ArrowCylinderbottom='falseradius='.025top='false'/>
 34 
                              <!-- Appearance Green is a DEF node that has 1 USE node: USE_1 -->
                              <Appearance DEF='Green'>
 35                                     <Material diffuseColor='.1 .6 .1emissiveColor='.05 .2 .05'/>
 36                                </Appearance>
 37                           </Shape>
 38                           <Transform translation='0 1 0'>
 39                                <Shape>
 40 
                                   <!-- Cone ArrowCone is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                                   <Cone DEF='ArrowConebottomRadius='.05height='.1'/>
 41                                     <Appearance USE='Green'/>
 42                                </Shape>
 43                           </Transform>
 44                      </Group>
 45                      <Transform translation='0 1.08 0'>
 46                           <Billboard>
 47                                <Shape>
 48 
                                   <!-- Appearance LABEL_APPEARANCE is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5 -->
                                   <Appearance DEF='LABEL_APPEARANCE'>
 49                                          <Material diffuseColor='1 1 .3emissiveColor='.33 .33 .1'/>
 50                                     </Appearance>
 51                                     <Text string='"+Y" "Up"'>
 52 
                                        <!-- FontStyle LABEL_FONT_TOP is a DEF node that has 1 USE node: USE_1 -->
                                        <FontStyle DEF='LABEL_FONT_TOPfamily='"SANS"justify='"MIDDLE" "END"size='.2'/>
 53                                     </Text>
 54                                </Shape>
 55                           </Billboard>
 56                      </Transform>
 57                      <Transform translation='0 -1.08 0'>
 58                           <Billboard>
 59                                <Shape>
 60                                     <Appearance USE='LABEL_APPEARANCE'/>
 61                                     <Text string='"-Y" "Down"'>
 62                                          <FontStyle USE='LABEL_FONT_TOP'/>
 63                                     </Text>
 64                                </Shape>
 65                           </Billboard>
 66                      </Transform>
 67                 </Group>
 68                 <Transform rotation='0 0 1 -1.57079'>
 69                      <!-- Horizontal X arrow and label -->
 70                      <Group>
 71                           <Group DEF='ArrowRed'>
 72                                <Shape>
 73                                     <Cylinder USE='ArrowCylinder'/>
 74 
                                   <!-- Appearance Red is a DEF node that has 1 USE node: USE_1 -->
                                   <Appearance DEF='Red'>
 75                                          <Material diffuseColor='.7 .1 .1emissiveColor='.33 0 0'/>
 76                                     </Appearance>
 77                                </Shape>
 78                                <Transform translation='0 1 0'>
 79                                     <Shape>
 80                                          <Cone USE='ArrowCone'/>
 81                                          <Appearance USE='Red'/>
 82                                     </Shape>
 83                                </Transform>
 84                           </Group>
 85                           <Transform rotation='0 0 1 1.57079translation='.072 1.1 0'>
 86                                <!-- note label rotated back to original coordinate frame -->
 87                                <Billboard>
 88                                     <Shape>
 89                                          <Appearance USE='LABEL_APPEARANCE'/>
 90                                          <Text string='"+X" "East"'>
 91 
                                             <!-- FontStyle LABEL_FONT is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                                             <FontStyle DEF='LABEL_FONTfamily='"SANS"justify='"MIDDLE" "MIDDLE"size='.2'/>
 92                                          </Text>
 93                                     </Shape>
 94                                </Billboard>
 95                           </Transform>
 96                           <Transform rotation='0 0 1 1.57079translation='.072 -1.1 0'>
 97                                <!-- note label rotated back to original coordinate frame -->
 98                                <Billboard>
 99                                     <Shape>
100                                          <Appearance USE='LABEL_APPEARANCE'/>
101                                          <Text string='"-X" "West"'>
102                                               <FontStyle USE='LABEL_FONT'/>
103                                          </Text>
104                                     </Shape>
105                                </Billboard>
106                           </Transform>
107                      </Group>
108                 </Transform>
109                 <Transform rotation='1 0 0 1.57079'>
110                      <!-- Perpendicular Z arrow and label, note right-hand rule -->
111                      <Group>
112                           <Group DEF='ArrowBlue'>
113                                <Shape>
114                                     <Cylinder USE='ArrowCylinder'/>
115 
                                   <!-- Appearance Blue is a DEF node that has 1 USE node: USE_1 -->
                                   <Appearance DEF='Blue'>
116                                          <Material diffuseColor='.3 .3 1emissiveColor='.1 .1 .33'/>
117                                     </Appearance>
118                                </Shape>
119                                <Transform translation='0 1 0'>
120                                     <Shape>
121                                          <Cone USE='ArrowCone'/>
122                                          <Appearance USE='Blue'/>
123                                     </Shape>
124                                </Transform>
125                           </Group>
126                           <Transform rotation='1 0 0 -1.57079translation='0 1.1 .072'>
127                                <!-- note label rotated back to original coordinate frame -->
128                                <Billboard>
129                                     <Shape>
130                                          <Appearance USE='LABEL_APPEARANCE'/>
131                                          <Text string='"+Z" "South"'>
132                                               <FontStyle USE='LABEL_FONT'/>
133                                          </Text>
134                                     </Shape>
135                                </Billboard>
136                           </Transform>
137                           <Transform rotation='1 0 0 -1.57079translation='0 -1.1 .072'>
138                                <!-- note label rotated back to original coordinate frame -->
139                                <Billboard>
140                                     <Shape>
141                                          <Appearance USE='LABEL_APPEARANCE'/>
142                                          <Text string='"-Z" "North"'>
143                                               <FontStyle USE='LABEL_FONT'/>
144                                          </Text>
145                                     </Shape>
146                                </Billboard>
147                           </Transform>
148                      </Group>
149                 </Transform>
150            </Collision>
151       </Scene>
152  </X3D>
<!--

<!-- -->
<!-- to top DEF nodes index: ArrowBlue, ArrowCone, ArrowCylinder, ArrowGreen, ArrowRed, Blue, DoNotCollideWithVisualizationWidget, Green, LABEL_APPEARANCE, LABEL_FONT, LABEL_FONT_TOP, Red
-->
X3D Tooltips element index: Appearance, Billboard, Collision, Cone, Cylinder, FontStyle, Group, head, Material, meta, Scene, Shape, Text, Transform, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxesNSEWIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxesNSEW.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

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