X3D Model Documentation: ModelOrientation.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='Interactive' 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='ModelOrientation.x3d'/>
  6            <meta name='creatorcontent='Jeffrey Weekley'/>
  7            <meta name='createdcontent='15 July 2003'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='descriptioncontent='X Y Z axis arrows and labels of X3D coordinate system to illustrate default entity center of gravity at 0 0 0, with default nose orientation pointing along the +X-axis. Ground vehicles have their position raised to allow bottom to touch the ground.'/>
 10            <meta name='Imagecontent='ModelOrientation.jpg'/>
 11            <meta name='referencecontent='../X3dSceneAuthoringHints.html#CoordinateSystems'/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/course/ModelOrientation.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../license.html'/>
 15       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Cammi, CoordinateAxes, TailFin

Index for Viewpoint node: Viewpoint_1
-->
 16       <Scene>
 17            <WorldInfo title='ModelOrientation.x3d'/>
 18            <Viewpoint description='Default model orientation: nose +X axis, up +Y axis, right-hand side +Z axis'/>
 19            <!-- Each arrow goes from +1m to -1m to allow linear scaling to fit a scene -->
 20            <!-- Note each label rotates about the scene's vertical Y axis for consistency, enabling local orientation by user -->
 21            <Transform scale='2 2 2'>
 22                 <Inline DEF='CoordinateAxes'   url=' "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.x3d" "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.wrl" '/>
 23            </Transform>
 24            <Transform scale='1.2 1.6 1.6'>
 25                 <Transform rotation='0 0 -1 1.57scale='0.25 0.25 0.25'>
 26                      <Shape>
 27                           <Cylinder height='8radius='0.4425top='false'/>
 28 
                         <!-- Appearance Cammi is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                         <Appearance DEF='Cammi'>
 29                                <Material diffuseColor='0.45 0.55 0.55'/>
 30                           </Appearance>
 31                      </Shape>
 32                      <Transform translation='0 4.9 0'>
 33                           <Shape>
 34                                <Cone bottomRadius='0.4425height='1.8'/>
 35                                <Appearance USE='Cammi'/>
 36                           </Shape>
 37                      </Transform>
 38                      <Transform translation='0 -4.1 0'>
 39                           <Shape>
 40                                <Cone bottomRadius='0.2height='0.66'/>
 41                                <Appearance>
 42                                     <Material diffuseColor='0.15 0.15 0.15shininess='0.66specularColor='0.22 0.22 0.22'/>
 43                                </Appearance>
 44                           </Shape>
 45                      </Transform>
 46 
                    <!-- Transform TailFin is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                    <Transform DEF='TailFintranslation='0.175 -4.5 0'>
 47                           <Shape>
 48                                <IndexedFaceSet solid='falsecoordIndex='0 1 2 3 4 5 -1'>
 49                                     <Coordinate point='0 0.4 0 0.25 0 0 0.75 0 0 0.75 1 0 0 1.65 0 0 0.4 0'/>
 50                                </IndexedFaceSet>
 51                                <Appearance USE='Cammi'/>
 52                           </Shape>
 53                      </Transform>
 54                      <Transform rotation='0 1 0 1.57'>
 55                           <Transform USE='TailFin'/>
 56                      </Transform>
 57                      <Transform rotation='0 1 0 3.14'>
 58                           <Transform USE='TailFin'/>
 59                      </Transform>
 60                      <Transform rotation='0 1 0 -1.57'>
 61                           <Transform USE='TailFin'/>
 62                      </Transform>
 63                 </Transform>
 64            </Transform>
 65       </Scene>
 66  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Cammi, CoordinateAxes, TailFin

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Cone, Coordinate, Cylinder, head, IndexedFaceSet, Inline, Material, meta, Scene, Shape, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/course/ModelOrientationIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/course/ModelOrientation.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)
-->

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