X3D Model Documentation: Arches.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='Interchange' 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='Arches.x3d'/>
  6            <meta name='descriptioncontent='Transform group example: gazebo made of arches. This example illustrates the use of Transform grouping nodes and their translation, rotation, and scale features.'/>
  7            <meta name='creatorcontent='David R. Nadeau'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='1 July 1998'/>
 10            <meta name='translatedcontent='2 February 2014'/>
 11            <meta name='modifiedcontent='20 October 2019'/>
 12            <meta name='referencecontent='originals/arches.wrl'/>
 13            <meta name='referencecontent='http://www.siggraph.org/s98'/>
 14            <meta name='referencecontent='http://www.siggraph.org/s98/conference/courses/18.html'/>
 15            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0069.htm'/>
 16            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/>
 17            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 18            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Arches.x3d'/>
 19            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 20            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 21            <meta name='licensecontent='../license.html'/>
 22       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Arch, Column, Roof, White
-->
 23       <Scene>
 24            <!-- First, an Arch is created in a group. The Arch includes of left and right columns, each positioned using a Transform group and its translation field. -->
 25            <!-- Next, each Arch group includes a horizontal box spanning the two columns. The box is translated up to the top of the columns using a Transform group node. -->
 26            <!-- The angled top of each Arch is created using two boxes, each rotated about the Z axis to tilt them. A translation then positions the tilted boxes at the top of the archway. -->
 27            <!-- Next, the entire Arch group is instanced multiple times, rotating each instance to create a circle of archs forming a gazeebo-like structure. -->
 28            <!-- Finally a base for the structure is added. -->
 29            <WorldInfo title='Arches.x3d'/>
 30 
          <!-- Transform Arch is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
          <Transform DEF='Arch'>
 31                 <Transform translation='-2.0 -1.0 0.0'>
 32 
                    <!-- Shape Column is a DEF node that has 1 USE node: USE_1 -->
                    <Shape DEF='Column'>
 33 
                         <!-- Appearance White is a DEF node that has 4 USE nodes: USE_1, USE_2, USE_3, USE_4 -->
                         <Appearance DEF='White'>
 34                                <Material/>
 35                           </Appearance>
 36                           <Cylinder bottom='falseheight='6.0radius='0.3top='false'/>
 37                      </Shape>
 38                 </Transform>
 39                 <Transform translation='2.0 -1.0 0.0'>
 40                      <Shape USE='Column'/>
 41                 </Transform>
 42                 <Transform translation='0.0 2.05 0.0'>
 43                      <Shape>
 44                           <Appearance USE='White'/>
 45                           <Box size='4.6 0.4 0.6'/>
 46                      </Shape>
 47                 </Transform>
 48                 <Transform rotation='0.0 0.0 1.0 0.524translation='-1.15 3.12 0.0'>
 49 
                    <!-- Shape Roof is a DEF node that has 1 USE node: USE_1 -->
                    <Shape DEF='Roof'>
 50                           <Appearance USE='White'/>
 51                           <Box size='2.86 0.4 0.6'/>
 52                      </Shape>
 53                 </Transform>
 54                 <Transform rotation='0.0 0.0 1.0 -0.524translation='1.15 3.12 0.0'>
 55                      <Shape USE='Roof'/>
 56                 </Transform>
 57            </Transform>
 58            <Transform rotation='0.0 1.0 0.0 0.785'>
 59                 <Transform USE='Arch'/>
 60            </Transform>
 61            <Transform rotation='0.0 1.0 0.0 -0.785'>
 62                 <Transform USE='Arch'/>
 63            </Transform>
 64            <Transform rotation='0.0 1.0 0.0 1.571'>
 65                 <Transform USE='Arch'/>
 66            </Transform>
 67            <Transform translation='0.0 -4.125 0.0'>
 68                 <Shape>
 69                      <Appearance USE='White'/>
 70                      <Cylinder bottom='falseheight='0.25radius='3.0'/>
 71                 </Shape>
 72            </Transform>
 73            <Transform translation='0.0 -4.375 0.0'>
 74                 <Shape>
 75                      <Appearance USE='White'/>
 76                      <Cylinder height='0.25radius='4.0'/>
 77                 </Shape>
 78            </Transform>
 79       </Scene>
 80  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Arch, Column, Roof, White
-->
X3D Tooltips element index: Appearance, Box, Cylinder, head, Material, meta, Scene, Shape, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/ArchesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Arches.x3d -->

<!-- Color 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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->