X3D Model Documentation: CanopyPrototype.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd">
  3  <X3D profile='Immersive' version='3.1 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.1.xsd'>
  4       <head>
  5            <meta name='titlecontent=' CanopyPrototype.x3d '/>
  6            <meta name='descriptioncontent='A simple canopy with tent material color exposed as a proto input'/>
  7            <meta name='creatorcontent='LT Patrick Sullivan'/>
  8            <meta name='createdcontent='23 March 2005'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Canopy/CanopyPrototype.x3d '/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 12            <meta name='generatorcontent='FluxStudio, http://www.vivaty.com/downloads/studio'/>
 13            <meta name='generatorcontent='Wings3D, http://www.wings3d.com'/>
 14            <meta name='licensecontent='../../license.html'/>
 15       </head>
<!--

<!-- -->
<!-- to top DEF nodes index: Black_mat, Canopy, cube1, cylinder2, cylinder2_copy3, cylinder2_copy4, cylinder2_copy5, Leg1, Leg2, Leg3, Leg4, tentColor, TentMaterial

Index for ProtoDeclare definition: Canopy
-->
 16       <Scene>
 17            <WorldInfo title='CanopyPrototype.x3d'/>
 18            <ProtoDeclare name='Canopy'>
 19                 <ProtoInterface>
 20                      <field name='materialColortype='SFColorvalue='0 0 1accessType='initializeOnly'
                     appinfo='The color of the material of the tent that forms the canopy'/>
 21                 </ProtoInterface>
 22                 <ProtoBody>
 23                      <Group DEF='Canopy'>
 24                           <Transform DEF='TentMaterial'>
 25                                <Shape DEF='cube1'>
 26                                     <Appearance>
 27                                          <Material DEF='tentColor'>
 28                                               <IS>
 29                                                    <connect nodeField='diffuseColorprotoField='materialColor'/>
 30                                               </IS>
 31                                          </Material>
 32                                     </Appearance>
 33                                     <IndexedFaceSet creaseAngle='0.524coordIndex='0 1 2 -1 0 2 3 -1 0 4 5 -1 0 5 6 -1 0 6 7 -1 0 7 8 -1 0 8 1 -1 0 3 9 -1 0 9 10 -1 0 10 4 -1 1 8 11 -1 1 11 2 -1 12 6 13 -1 12 13 14 -1 12 8 7 -1 12 7 6 -1 12 14 11 -1 12 11 8 -1 6 5 15 -1 6 15 16 -1 6 16 13 -1 9 17 18 -1 9 18 19 -1 9 19 16 -1 9 16 15 -1 9 15 10 -1 9 3 2 -1 9 2 17 -1 17 2 11 -1 17 11 18 -1 20 16 19 -1 20 19 18 -1 20 14 13 -1 20 13 16 -1 20 18 11 -1 20 11 14 -1 29 30 31 -1 29 31 32 -1 29 32 33 -1 29 33 34 -1 29 35 36 -1 29 36 30 -1 29 34 37 -1 29 37 35 -1 30 36 38 -1 30 38 31 -1 31 38 39 -1 31 39 32 -1 32 39 40 -1 32 40 33 -1 35 39 38 -1 35 38 36 -1 35 37 40 -1 35 40 39 -1'>
 34                                          <Coordinate point='-1 .59111 1 -.0765 1 .0765 -.102 1 0 -1 .59111 0 -1 .46311 1 1 .46311 1 1 .59111 1 0 .59111 1 0 1 .102 -1 .59111 -1 -1 .46311 -1 0 1 0 .0765 1 .0765 1 .59111 0 .102 1 0 1 .46311 -1 1 .59111 -1 -.0765 1 -.0765 0 1 -.102 0 .59111 -1 .0765 1 -.0765 -1 .46311 1 1 .46311 1 1 .46311 -1 -1 .46311 -1 -1 .46311 1 1 .46311 1 1 .46311 -1 -1 .46311 -1 -1 .59111 1 -.102 1 .102 .102 1 .102 1 .59111 1 1 .46311 1 -1 .46311 1 -1 .59111 -1 -.102 1 -.102 -1 .46311 -1 .102 1 -.102 1 .59111 -1 1 .46311 -1'/>
 35                                     </IndexedFaceSet>
 36                                </Shape>
 37                           </Transform>
 38                           <Transform DEF='Leg1'>
 39                                <Shape DEF='cylinder2_copy5'>
 40                                     <Appearance>
 41 
                                        <!-- Material Black_mat is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                                        <Material DEF='Black_matdiffuseColor='0 0 0'/>
 42                                     </Appearance>
 43                                     <IndexedFaceSet creaseAngle='0.524coordIndex='0 1 2 -1 0 2 3 -1 0 4 5 -1 0 5 6 -1 0 6 7 -1 0 7 8 -1 0 8 9 -1 0 9 10 -1 0 10 11 -1 0 11 12 -1 0 12 13 -1 0 13 14 -1 0 14 15 -1 0 15 16 -1 0 16 17 -1 0 17 1 -1 0 3 18 -1 0 18 4 -1 1 17 19 -1 1 19 2 -1 17 16 20 -1 17 20 19 -1 16 15 21 -1 16 21 20 -1 15 14 22 -1 15 22 21 -1 14 13 23 -1 14 23 22 -1 13 12 24 -1 13 24 23 -1 12 11 25 -1 12 25 24 -1 11 10 26 -1 11 26 25 -1 10 9 27 -1 10 27 26 -1 9 8 28 -1 9 28 27 -1 8 7 29 -1 8 29 28 -1 7 6 30 -1 7 30 29 -1 6 5 31 -1 6 31 30 -1 5 4 18 -1 5 18 31 -1 3 2 19 -1 3 19 20 -1 3 20 21 -1 3 21 22 -1 3 22 23 -1 3 23 24 -1 3 24 25 -1 3 25 26 -1 3 26 27 -1 3 27 28 -1 3 28 29 -1 3 29 30 -1 3 30 31 -1 3 31 18 -1'>
 44                                          <Coordinate point='-.89716 .61014 -.91191 -.89814 .61014 -.90699 -.89814 -1 -.90699 -.89716 -1 -.91191 -.89814 .61014 -.91682 -.90092 .61014 -.92099 -.90509 .61014 -.92378 -.91001 .61014 -.92476 -.91493 .61014 -.92378 -.9191 .61014 -.92099 -.92189 .61014 -.91682 -.92286 .61014 -.91191 -.92189 .61014 -.90699 -.9191 .61014 -.90282 -.91493 .61014 -.90003 -.91001 .61014 -.89905 -.90509 .61014 -.90003 -.90092 .61014 -.90282 -.89814 -1 -.91682 -.90092 -1 -.90282 -.90509 -1 -.90003 -.91001 -1 -.89905 -.91493 -1 -.90003 -.9191 -1 -.90282 -.92189 -1 -.90699 -.92286 -1 -.91191 -.92189 -1 -.91682 -.9191 -1 -.92099 -.91493 -1 -.92378 -.91001 -1 -.92476 -.90509 -1 -.92378 -.90092 -1 -.92099'/>
 45                                     </IndexedFaceSet>
 46                                </Shape>
 47                           </Transform>
 48                           <Transform DEF='Leg2'>
 49                                <Shape DEF='cylinder2_copy4'>
 50                                     <Appearance>
 51                                          <Material USE='Black_mat'/>
 52                                     </Appearance>
 53                                     <IndexedFaceSet creaseAngle='0.524coordIndex='0 1 2 -1 0 2 3 -1 0 4 5 -1 0 5 6 -1 0 6 7 -1 0 7 8 -1 0 8 9 -1 0 9 10 -1 0 10 11 -1 0 11 12 -1 0 12 13 -1 0 13 14 -1 0 14 15 -1 0 15 16 -1 0 16 17 -1 0 17 1 -1 0 3 18 -1 0 18 4 -1 1 17 19 -1 1 19 2 -1 17 16 20 -1 17 20 19 -1 16 15 21 -1 16 21 20 -1 15 14 22 -1 15 22 21 -1 14 13 23 -1 14 23 22 -1 13 12 24 -1 13 24 23 -1 12 11 25 -1 12 25 24 -1 11 10 26 -1 11 26 25 -1 10 9 27 -1 10 27 26 -1 9 8 28 -1 9 28 27 -1 8 7 29 -1 8 29 28 -1 7 6 30 -1 7 30 29 -1 6 5 31 -1 6 31 30 -1 5 4 18 -1 5 18 31 -1 3 2 19 -1 3 19 20 -1 3 20 21 -1 3 21 22 -1 3 22 23 -1 3 23 24 -1 3 24 25 -1 3 25 26 -1 3 26 27 -1 3 27 28 -1 3 28 29 -1 3 29 30 -1 3 30 31 -1 3 31 18 -1'>
 54                                          <Coordinate point='-.89716 .61014 .90984 -.89814 .61014 .91476 -.89814 -1 .91476 -.89716 -1 .90984 -.89814 .61014 .90492 -.90092 .61014 .90075 -.90509 .61014 .89797 -.91001 .61014 .89699 -.91493 .61014 .89797 -.9191 .61014 .90075 -.92189 .61014 .90492 -.92286 .61014 .90984 -.92189 .61014 .91476 -.9191 .61014 .91893 -.91493 .61014 .92172 -.91001 .61014 .92269 -.90509 .61014 .92172 -.90092 .61014 .91893 -.89814 -1 .90492 -.90092 -1 .91893 -.90509 -1 .92172 -.91001 -1 .92269 -.91493 -1 .92172 -.9191 -1 .91893 -.92189 -1 .91476 -.92286 -1 .90984 -.92189 -1 .90492 -.9191 -1 .90075 -.91493 -1 .89797 -.91001 -1 .89699 -.90509 -1 .89797 -.90092 -1 .90075'/>
 55                                     </IndexedFaceSet>
 56                                </Shape>
 57                           </Transform>
 58                           <Transform DEF='Leg3'>
 59                                <Shape DEF='cylinder2_copy3'>
 60                                     <Appearance>
 61                                          <Material USE='Black_mat'/>
 62                                     </Appearance>
 63                                     <IndexedFaceSet creaseAngle='0.524coordIndex='0 1 2 -1 0 2 3 -1 0 4 5 -1 0 5 6 -1 0 6 7 -1 0 7 8 -1 0 8 9 -1 0 9 10 -1 0 10 11 -1 0 11 12 -1 0 12 13 -1 0 13 14 -1 0 14 15 -1 0 15 16 -1 0 16 17 -1 0 17 1 -1 0 3 18 -1 0 18 4 -1 1 17 19 -1 1 19 2 -1 17 16 20 -1 17 20 19 -1 16 15 21 -1 16 21 20 -1 15 14 22 -1 15 22 21 -1 14 13 23 -1 14 23 22 -1 13 12 24 -1 13 24 23 -1 12 11 25 -1 12 25 24 -1 11 10 26 -1 11 26 25 -1 10 9 27 -1 10 27 26 -1 9 8 28 -1 9 28 27 -1 8 7 29 -1 8 29 28 -1 7 6 30 -1 7 30 29 -1 6 5 31 -1 6 31 30 -1 5 4 18 -1 5 18 31 -1 3 2 19 -1 3 19 20 -1 3 20 21 -1 3 21 22 -1 3 22 23 -1 3 23 24 -1 3 24 25 -1 3 25 26 -1 3 26 27 -1 3 27 28 -1 3 28 29 -1 3 29 30 -1 3 30 31 -1 3 31 18 -1'>
 64                                          <Coordinate point='.91916 .61014 -.91191 .91818 .61014 -.90699 .91818 -1 -.90699 .91916 -1 -.91191 .91818 .61014 -.91682 .9154 .61014 -.92099 .91123 .61014 -.92378 .90631 .61014 -.92476 .90139 .61014 -.92378 .89722 .61014 -.92099 .89443 .61014 -.91682 .89346 .61014 -.91191 .89443 .61014 -.90699 .89722 .61014 -.90282 .90139 .61014 -.90003 .90631 .61014 -.89905 .91123 .61014 -.90003 .9154 .61014 -.90282 .91818 -1 -.91682 .9154 -1 -.90282 .91123 -1 -.90003 .90631 -1 -.89905 .90139 -1 -.90003 .89722 -1 -.90282 .89443 -1 -.90699 .89346 -1 -.91191 .89443 -1 -.91682 .89722 -1 -.92099 .90139 -1 -.92378 .90631 -1 -.92476 .91123 -1 -.92378 .9154 -1 -.92099'/>
 65                                     </IndexedFaceSet>
 66                                </Shape>
 67                           </Transform>
 68                           <Transform DEF='Leg4'>
 69                                <Shape DEF='cylinder2'>
 70                                     <Appearance>
 71                                          <Material USE='Black_mat'/>
 72                                     </Appearance>
 73                                     <IndexedFaceSet creaseAngle='0.524coordIndex='0 1 2 -1 0 2 3 -1 0 4 5 -1 0 5 6 -1 0 6 7 -1 0 7 8 -1 0 8 9 -1 0 9 10 -1 0 10 11 -1 0 11 12 -1 0 12 13 -1 0 13 14 -1 0 14 15 -1 0 15 16 -1 0 16 17 -1 0 17 1 -1 0 3 18 -1 0 18 4 -1 1 17 19 -1 1 19 2 -1 17 16 20 -1 17 20 19 -1 16 15 21 -1 16 21 20 -1 15 14 22 -1 15 22 21 -1 14 13 23 -1 14 23 22 -1 13 12 24 -1 13 24 23 -1 12 11 25 -1 12 25 24 -1 11 10 26 -1 11 26 25 -1 10 9 27 -1 10 27 26 -1 9 8 28 -1 9 28 27 -1 8 7 29 -1 8 29 28 -1 7 6 30 -1 7 30 29 -1 6 5 31 -1 6 31 30 -1 5 4 18 -1 5 18 31 -1 3 2 19 -1 3 19 20 -1 3 20 21 -1 3 21 22 -1 3 22 23 -1 3 23 24 -1 3 24 25 -1 3 25 26 -1 3 26 27 -1 3 27 28 -1 3 28 29 -1 3 29 30 -1 3 30 31 -1 3 31 18 -1'>
 74                                          <Coordinate point='.91916 .61014 .90984 .91818 .61014 .91476 .91818 -1 .91476 .91916 -1 .90984 .91818 .61014 .90492 .9154 .61014 .90075 .91123 .61014 .89797 .90631 .61014 .89699 .90139 .61014 .89797 .89722 .61014 .90075 .89443 .61014 .90492 .89346 .61014 .90984 .89443 .61014 .91476 .89722 .61014 .91893 .90139 .61014 .92172 .90631 .61014 .92269 .91123 .61014 .92172 .9154 .61014 .91893 .91818 -1 .90492 .9154 -1 .91893 .91123 -1 .92172 .90631 -1 .92269 .90139 -1 .92172 .89722 -1 .91893 .89443 -1 .91476 .89346 -1 .90984 .89443 -1 .90492 .89722 -1 .90075 .90139 -1 .89797 .90631 -1 .89699 .91123 -1 .89797 .9154 -1 .90075'/>
 75                                     </IndexedFaceSet>
 76                                </Shape>
 77                           </Transform>
 78                      </Group>
 79                 </ProtoBody>
 80            </ProtoDeclare>
 81       </Scene>
 82  </X3D>
<!--

<!-- -->
<!-- to top DEF nodes index: Black_mat, Canopy, cube1, cylinder2, cylinder2_copy3, cylinder2_copy4, cylinder2_copy5, Leg1, Leg2, Leg3, Leg4, tentColor, TentMaterial

Index for ProtoDeclare definition: Canopy
-->
X3D Tooltips element index: Appearance, connect, Coordinate, field, Group, head, IndexedFaceSet, IS, Material, meta, ProtoBody, ProtoDeclare, ProtoInterface, Scene, Shape, Transform, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Canopy/CanopyPrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Canopy/CanopyPrototype.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. -->