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='title' content=' ZonePrototype.x3d '/> |
6 | <meta name='description' content='Exclusion Zone Range Markers. Up to three'/> |
7 | <meta name='creator' content='Alan Hudson'/> |
8 | <meta name='created' content='11 Sept 2006'/> |
9 | <meta name='modified' content='28 November 2019'/> |
10 | <meta name='version' content='1.0'/> |
11 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Symbology/ZonePrototype.x3d '/> |
12 | <meta name='generator' content='TextPad'/> |
13 | <meta name='license' content='../../license.html'/> |
14 | </head> |
15 | <Scene> |
16 | <WorldInfo title='ZonePrototype.x3d'/> |
17 | <ProtoDeclare name='Zone'> |
18 | <ProtoInterface> |
19 |
<field name='translation' type='SFVec3f' value='0 0 0' accessType='inputOutput'
appinfo='Usually to raise ranges off the surface'/> |
20 |
<field name='range' type='SFVec3f' value='1 1 1' accessType='inputOutput'
appinfo='Scale of 1 meter radius circle'/> |
21 |
<field name='color' type='SFColor' value='1 1 1' accessType='inputOutput'
appinfo='The color to display the zone in.'/> |
22 |
<field name='whichChoice' type='SFInt32' value='0' accessType='inputOutput'
appinfo='Turns zones on and off'/> |
23 | </ProtoInterface> |
24 | <ProtoBody> |
25 | <Switch whichChoice='-1'> |
26 | <IS> |
27 | <connect nodeField='whichChoice' protoField='whichChoice'/> |
28 | </IS> |
29 | <Transform> |
30 | <IS> |
31 | <connect nodeField='translation' protoField='translation'/> |
32 | </IS> |
33 | <Transform DEF='Range'> |
34 | <IS> |
35 | <connect nodeField='scale' protoField='range'/> |
36 | </IS> |
37 | <Shape> |
38 | <Appearance> |
39 | <Material> |
40 | <IS> |
41 | <connect nodeField='emissiveColor' protoField='color'/> |
42 | </IS> |
43 | </Material> |
44 | </Appearance> |
45 | <IndexedLineSet colorPerVertex='false' colorIndex='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' coordIndex='1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33'> |
46 | <Coordinate point='0 0 -1 0.195 0 -0.981 0.382 0 -0.924 0.555 0 -0.832 0.707 0 -0.708 0.831 0 -0.556 0.923 0 -0.383 0.98 0 -0.196 1 0 0 0.98 0 0.195 0.923 0 0.382 0.831 0 0.555 0.707 0 0.707 0.555 0 0.831 0.382 0 0.923 0.195 0 0.98 0 0 1 -0.195 0 0.98 -0.382 0 0.923 -0.555 0 0.831 -0.707 0 0.707 -0.831 0 0.555 -0.923 0 0.382 -0.98 0 0.195 -1 0 0 -0.981 0 -0.195 -0.924 0 -0.382 -0.832 0 -0.555 -0.708 0 -0.707 -0.556 0 -0.831 -0.383 0 -0.923 -0.196 0 -0.98 0 0 -1 0.195 0 -0.981'/> |
47 | </IndexedLineSet> |
48 | </Shape> |
49 | </Transform> |
50 | </Transform> |
51 | </Switch> |
52 | </ProtoBody> |
53 | </ProtoDeclare> |
54 | </Scene> |
55 | </X3D> |
<!--
Color-coding 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)
<ProtoDeclare name='ProtoName'>
<field
name='fieldName'/> </ProtoDeclare>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->