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='title' content='SphericalMineExample.x3d'/> |
6 | <meta name='creator' content='Don Brutzman'/> |
7 | <meta name='created' content='26 June 2000'/> |
8 | <meta name='modified' content='28 November 2019'/> |
9 | <meta name='identifier' content='https://savage.nps.edu/Savage/Weapons/UnderwaterMines/SphericalMineExample.x3d'/> |
10 | <meta name='description' content='Example use of SphericalMine prototype.'/> |
11 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
12 | <meta name='license' content='../../license.html'/> |
13 | </head> |
14 | <Scene> |
15 | <!-- shape X Y Z R H # grid indices --> |
16 | <WorldInfo title='SphericalMineExample.x3d'/> |
17 | <ExternProtoDeclare name='SphericalMine' appinfo='Spherical floating mine moored to bottom' url=' "../../Weapons/UnderwaterMines/SphericalMinePrototype.x3d#SphericalMine" "https://savage.nps.edu/Savage/Weapons/UnderwaterMines/SphericalMinePrototype.x3d#SphericalMine" "../../Weapons/UnderwaterMines/SphericalMinePrototype.wrl#SphericalMine" "https://savage.nps.edu/Savage/Weapons/UnderwaterMines/SphericalMinePrototype.wrl#SphericalMine" '> |
18 |
<field name='description' type='SFString' accessType='initializeOnly'
appinfo='Description for each mine contact.'/> |
19 |
<field name='color' type='SFColor' accessType='inputOutput'
appinfo='Mine color can be used to indicate status (found/unknown/disabled/) tactic etc.'/> |
20 |
<field name='translation' type='SFVec3f' accessType='inputOutput'
appinfo='Location of mine center in local world coordinates.'/> |
21 |
<field name='scale' type='SFVec3f' accessType='inputOutput'
appinfo='Scale factor to change spherical mine size default diameter = 1m.'/> |
22 |
<field name='bboxCenter' type='SFVec3f' accessType='initializeOnly'
appinfo='Bounding box for collision detection of mine.'/> |
23 |
<field name='tetherPoints' type='MFVec3f' accessType='inputOutput'
appinfo='Top and bottom endpoints of line tether that anchors this mine to the bottom.'/> |
24 |
<field name='proximityIsActive' type='SFBool' accessType='outputOnly'
appinfo='proximityIsActive can be used to activate information or interaction when the viewer nears the mine.'/> |
25 |
<field name='proximitySize' type='SFVec3f' accessType='inputOutput'
appinfo='proximitySize provides overall box dimensions for proximity; thus (10 10 10) yields approximate radius 5 to 7 meters.'/> |
26 | </ExternProtoDeclare> |
27 | <Viewpoint description='Three mines' orientation='0 1 0 2.5' position='24 -15 -15'/> |
28 | <ProtoInstance name='SphericalMine'> |
29 | <fieldValue name='description' value='Spherical Mine #1'/> |
30 | <fieldValue name='translation' value='5 -20 15'/> |
31 | <fieldValue name='tetherPoints' value='0 0 0 0 -5 0'/> |
32 | </ProtoInstance> |
33 | <ProtoInstance name='SphericalMine'> |
34 | <fieldValue name='description' value='Spherical Mine 2'/> |
35 | <fieldValue name='translation' value='5 -15 10'/> |
36 | <fieldValue name='tetherPoints' value='0 0 0 0 -10 0'/> |
37 | </ProtoInstance> |
38 | <ProtoInstance name='SphericalMine'> |
39 | <fieldValue name='description' value='Spherical Mine #3'/> |
40 | <fieldValue name='translation' value='5 -10 5'/> |
41 | <fieldValue name='tetherPoints' value='0 0 0 0 -15 0'/> |
42 | </ProtoInstance> |
43 | </Scene> |
44 | </X3D> |
<!--
Color-coding legend: X3D terminology
<X3dNode field='value'/>
matches XML terminology
<XmlElement attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
<ProtoInstance name='ProtoName'>
<field
name='fieldName'/> </ProtoInstance>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->