X3D Model Documentation: RapierMissilePrototype.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='RapierMissilePrototype.x3d'/>
  6            <meta name='creatorcontent='Oliver Tan'/>
  7            <meta name='createdcontent='14 January 2004'/>
  8            <meta name='modifiedcontent='28 November 2019'/>
  9            <meta name='descriptioncontent='Rapier missile prototype definition.'/>
 10            <meta name='identifiercontent='https://savage.nps.edu/Savage/Weapons/Missiles/RapierMissilePrototype.x3d'/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
 12            <meta name='referencecontent='http://www.army-technology.com/projects/jernas/jernas1.html'/>
 13            <meta name='subjectcontent='Rapier, Rapier missile, missile'/>
 14            <meta name='licensecontent='../../license.html'/>
 15       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: BigFin, BigFinsGroup, RocketBody, RocketCone, RocketMetal, SmallFin, SmallFinsGroup

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2

Index for ProtoDeclare definition: RapierMissile
-->
 16       <Scene>
 17            <!-- This NavigationInfo node is added to many scenes, making examination of objects easier. -->
 18            <WorldInfo title='RapierMissilePrototype.x3d'/>
 19            <ProtoDeclare name='RapierMissile'>
 20                 <ProtoInterface>
 21                      <field name='rocketAppearancetype='SFNodeaccessType='initializeOnly'>
 22                           <Appearance>
 23                                <Material DEF='RocketMetaldiffuseColor='.3 .6 .9'/>
 24                           </Appearance>
 25                      </field>
 26                 </ProtoInterface>
 27                 <ProtoBody>
 28                      <Viewpoint description='Rapier missile example'/>
 29                      <Viewpoint description='Rapier missile obliqueorientation='0.177 0.973 -0.145 0.8128position='7 -1.5 7.8'/>
 30                      <Transform rotation='0 1 0 1.57translation='2 0 0'>
 31                           <Transform rotation='1 0 0 1.571'>
 32                                <!-- This is only a representational model. It is not created to scale. -->
 33                                <Group>
 34                                     <Transform DEF='RocketCone'>
 35                                          <Transform translation='0 3 0'>
 36                                               <Shape>
 37                                                    <IS>
 38                                                         <connect nodeField='appearanceprotoField='rocketAppearance'/>
 39                                                    </IS>
 40                                                    <Cone bottomRadius='0.5'/>
 41                                               </Shape>
 42                                          </Transform>
 43                                     </Transform>
 44                                     <Transform translation='0 2 0'>
 45                                          <Shape>
 46                                               <IS>
 47                                                    <connect nodeField='appearanceprotoField='rocketAppearance'/>
 48                                               </IS>
 49                                               <Cylinder height='0.1radius='0.505'/>
 50                                          </Shape>
 51                                     </Transform>
 52                                     <Transform DEF='RocketBodytranslation='0 -4 0'>
 53                                          <Transform scale='0.5 4 0.5'>
 54                                               <Shape>
 55                                                    <IS>
 56                                                         <connect nodeField='appearanceprotoField='rocketAppearance'/>
 57                                                    </IS>
 58                                                    <Extrusion creaseAngle='0.785crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00scale='1.0 1.0 1.0 1.0 0.5 0.5spine='0 1.5 0 0 -0.95 0 0 -1 0'/>
 59                                               </Shape>
 60                                          </Transform>
 61                                     </Transform>
 62                                     <Transform DEF='BigFinsGrouptranslation='0 -3.5 0'>
 63                                          <Group>
 64                                               <Transform translation='0.5 0 0'>
 65 
                                                  <!-- Transform BigFin is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                                                  <Transform DEF='BigFinrotation='1 0 0 -1.571scale='1 0.5 1.3'>
 66                                                         <Shape>
 67                                                              <IS>
 68                                                                   <connect nodeField='appearanceprotoField='rocketAppearance'/>
 69                                                              </IS>
 70                                                              <Extrusion creaseAngle='0.785crossSection='0.0 0.0 0.0 2.0 1.0 0.1 1.0 0.0 0.0 0.0spine='0.0 -0.05 0.0 0.0 0.05 0.0'/>
 71                                                         </Shape>
 72                                                    </Transform>
 73                                               </Transform>
 74                                               <Transform rotation='0 1 0 1.571translation='0 0 -0.5'>
 75                                                    <Transform USE='BigFin'/>
 76                                               </Transform>
 77                                               <Transform rotation='0 1 0 3.142translation='-0.5 0 0'>
 78                                                    <Transform USE='BigFin'/>
 79                                               </Transform>
 80                                               <Transform rotation='0 1 0 4.712translation='0 0 0.5'>
 81                                                    <Transform USE='BigFin'/>
 82                                               </Transform>
 83                                          </Group>
 84                                     </Transform>
 85                                     <Transform DEF='SmallFinsGrouptranslation='0 -7.5 0'>
 86                                          <Group>
 87                                               <Transform translation='0.5 0 0'>
 88 
                                                  <!-- Transform SmallFin is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                                                  <Transform DEF='SmallFinrotation='1 0 0 -1.571scale='0.5 0.5 1'>
 89                                                         <Shape>
 90                                                              <IS>
 91                                                                   <connect nodeField='appearanceprotoField='rocketAppearance'/>
 92                                                              </IS>
 93                                                              <Extrusion creaseAngle='0.785crossSection='0.0 0.1 0.0 1.0 1.0 0.0 0.0 0.1spine='0.0 -0.05 0.0 0.0 0.05 0.0'/>
 94                                                         </Shape>
 95                                                    </Transform>
 96                                               </Transform>
 97                                               <Transform rotation='0 1 0 1.571translation='0 0 -0.5'>
 98                                                    <Transform USE='SmallFin'/>
 99                                               </Transform>
100                                               <Transform rotation='0 1 0 3.142translation='-0.5 0 0'>
101                                                    <Transform USE='SmallFin'/>
102                                               </Transform>
103                                               <Transform rotation='0 1 0 4.712translation='0 0 0.5'>
104                                                    <Transform USE='SmallFin'/>
105                                               </Transform>
106                                          </Group>
107                                     </Transform>
108                                </Group>
109                           </Transform>
110                      </Transform>
111                 </ProtoBody>
112            </ProtoDeclare>
113            <Anchor description='RapierMissileExample'   url=' "RapierMissileExample.x3d" "https://savage.nps.edu/Savage/Weapons/Missiles/RapierMissileExample.x3d" "RapierMissileExample.wrl" "https://savage.nps.edu/Savage/Weapons/Missiles/RapierMissileExample.wrl" '>
114                 <Shape>
115                      <Text string='"Rapier Missile Prototype" "contains prototype definitions" "" "Click on text to see these models in" "RapierMissileExample"'>
116                           <FontStyle justify='"MIDDLE" "MIDDLE"size='0.5'/>
117                      </Text>
118                      <Appearance>
119                           <Material diffuseColor='0 0.6 0.6'/>
120                      </Appearance>
121                 </Shape>
122            </Anchor>
123       </Scene>
124  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: BigFin, BigFinsGroup, RocketBody, RocketCone, RocketMetal, SmallFin, SmallFinsGroup

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2

Index for ProtoDeclare definition: RapierMissile
-->
X3D Tooltips element index: Anchor, Appearance, Cone, connect, Cylinder, Extrusion, field, FontStyle, Group, head, IS, Material, meta, ProtoBody, ProtoDeclare, ProtoInterface, Scene, Shape, Text, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://savage.nps.edu/Savage/Weapons/Missiles/RapierMissilePrototypeIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/Weapons/Missiles/RapierMissilePrototype.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)
    <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. -->