X3D Model Documentation: Pdm1BottomMinePrototype.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='Pdm1BottomMinePrototype.x3d'/>
  6            <meta name='descriptioncontent='Russian bottom mine triggered by tilt bar (whisker); prototype declaration for reuse in other scenes.'/>
  7            <meta name='creatorcontent='Don Brutzman and Jeff Weekley, LAX Gate 65'/>
  8            <meta name='createdcontent='20 March 2001'/>
  9            <meta name='modifiedcontent='28 November 2019'/>
 10            <meta name='referencecontent='Pdm1BottomMineExample.x3d'/>
 11            <meta name='photocontent='Pdm1AssembledMine97cm.jpg'/>
 12            <meta name='photocontent='Pdm1Fuse.jpg'/>
 13            <meta name='photocontent='Pdm1FuseBoxLabel.jpg'/>
 14            <meta name='photocontent='Pdm1MineBoxLabel.jpg'/>
 15            <meta name='photocontent='Pdm1MineCaseAnchorFrame.jpg'/>
 16            <meta name='referencecontent='https://www.fas.org/man/dod-101/navy/docs/swos/cmd/miw/Sp6-4-1/sld065.htm'/>
 17            <meta name='identifiercontent='https://savage.nps.edu/Savage/Weapons/UnderwaterMines/Pdm1BottomMinePrototype.x3d'/>
 18            <meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
 19            <meta name='licensecontent='../../license.html'/>
 20       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: EntryViewpoint0, EntryViewpoint1, MineColor

Index for Viewpoint nodes: EntryViewpoint0, EntryViewpoint1

Index for ProtoDeclare definition: Pdm1BottomMine
-->
 21       <Scene>
 22            <WorldInfo title='Pdm1BottomMinePrototype.x3d'/>
 23            <ProtoDeclare name='Pdm1BottomMineappinfo='PDM-1 underwater mine'>
 24                 <ProtoInterface>
 25                      <field name='mineColortype='SFColorvalue='0.4 0.3 0.1accessType='inputOutput'
                     appinfo='useful for classification'/>
 26                      <field name='viewpointDescriptiontype='SFStringvalue='PDM-1 mineaccessType='initializeOnly'
                     appinfo='customize to match each instance'/>
 27                 </ProtoInterface>
 28                 <ProtoBody>
 29                      <LOD range='100 1000'>
 30                           <Group>
 31                                <Anchor description='link to imageparameter='"target=_blank"'   url=' "Pdm1AssembledMine97cm.jpg " "https://savage.nps.edu/Savage/Weapons/UnderwaterMines/Pdm1AssembledMine97cm.jpg " '>
 32                                     <Transform translation='0 0.02 0'>
 33                                          <Shape>
 34                                               <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='0.16 0.16 0.14 0.14 0.08 0.08 0.025 0.025 0.025 0.025 0.005 0.005 0.005 0.005spine='0 0 0 0 0.02 0 0 0.04 0 0 0.05 0 0 0.10 0 0 0.10 0 0 0.97 0'/>
 35                                               <Appearance>
 36 
                                                  <!-- Material MineColor is a DEF node that has 1 USE node: USE_1 -->
                                                  <Material DEF='MineColorshininess='0.5'>
 37                                                         <IS>
 38                                                              <connect nodeField='diffuseColorprotoField='mineColor'/>
 39                                                         </IS>
 40                                                    </Material>
 41                                               </Appearance>
 42                                          </Shape>
 43                                     </Transform>
 44                                     <Transform translation='0 0.015 0'>
 45                                          <Shape>
 46                                               <Cylinder height='0.01radius='0.3'/>
 47                                               <Appearance>
 48                                                    <Material USE='MineColor'/>
 49                                               </Appearance>
 50                                          </Shape>
 51                                     </Transform>
 52                                </Anchor>
 53                                <Viewpoint DEF='EntryViewpoint0description='PDM-1 (Russian bottom mine)position='0 0.5 1.5'>
 54                                     <IS>
 55                                          <connect nodeField='descriptionprotoField='viewpointDescription'/>
 56                                     </IS>
 57                                </Viewpoint>
 58                           </Group>
 59                           <!-- interestingly, USE EntryViewpoint0 didn't work when switching LOD levels, apparently due to viewpoint losing scope before handoff -->
 60                           <Viewpoint DEF='EntryViewpoint1description='PDM-1 (Russian bottom mine)position='0 0.5 1.5'>
 61                                <IS>
 62                                     <connect nodeField='descriptionprotoField='viewpointDescription'/>
 63                                </IS>
 64                           </Viewpoint>
 65                           <WorldInfo info='"empty node"'/>
 66                      </LOD>
 67                 </ProtoBody>
 68            </ProtoDeclare>
 69            <Background skyColor='0 0.3 1.0'/>
 70            <Anchor description='Pdm1BottomMineExampleparameter='"target=_blank"'   url=' "Pdm1BottomMineExample.x3d" "https://savage.nps.edu/Savage/Weapons/UnderwaterMines/Pdm1BottomMineExample.x3d" "Pdm1BottomMineExample.wrl" "https://savage.nps.edu/Savage/Weapons/UnderwaterMines/Pdm1BottomMineExample.wrl" '>
 71                 <Shape>
 72                      <Text string='"Pdm1BottomMinePrototype" "is a prototype definition file" "" "Click this text to see" "Pdm1BottomMineExample"'>
 73                           <FontStyle justify='"MIDDLE" "MIDDLE"'/>
 74                      </Text>
 75                      <Appearance>
 76                           <Material diffuseColor='0.6 0.8 0.4'/>
 77                      </Appearance>
 78                 </Shape>
 79            </Anchor>
 80       </Scene>
 81  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: EntryViewpoint0, EntryViewpoint1, MineColor

Index for Viewpoint nodes: EntryViewpoint0, EntryViewpoint1

Index for ProtoDeclare definition: Pdm1BottomMine
-->
X3D Tooltips element index: Anchor, Appearance, Background, connect, Cylinder, Extrusion, field, FontStyle, Group, head, IS, LOD, 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/UnderwaterMines/Pdm1BottomMinePrototypeIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/Weapons/UnderwaterMines/Pdm1BottomMinePrototype.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. -->