X3D Model Documentation: TestCube.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
  3  <X3D profile='Interchange' version='3.2 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'>
  4       <head>
  5            <meta name='titlecontent='TestCube.x3d'/>
  6            <meta name='creatorcontent='Don Brutzman'/>
  7            <meta name='createdcontent='1 November 2008'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='descriptioncontent='Provides a cube-shaped test model with each side face individually labeled.'/>
 10            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.x3d'/>
 11            <meta name='drawingcontent='images/TestBoxImages.vsd'/>
 12            <meta name='drawingcontent='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/TestBoxImages.vsd'/>
 13            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestCube.x3d'/>
 14            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 15            <meta name='licensecontent='../license.html'/>
 16       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Back, Bottom, DefaultTextureCoordinate, Front, Left, Points, Right, Rotate180, RotateLeft, RotateRight, Top

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6
-->
 17       <Scene>
 18            <WorldInfo title='TestCube.x3d'/>
 19            <Background skyColor='0.05 0.05 0.1'/>
 20            <Group>
 21                 <Viewpoint description='Front vieworientation='0 1 0 1.57position='8 0 0'/>
 22                 <Shape DEF='Front'>
 23                      <IndexedFaceSet coordIndex='0 1 2 3texCoordIndex='0 1 2 3'>
 24 
                         <!-- Coordinate Points is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5 -->
                         <Coordinate DEF='Pointspoint='1 1 1 1 -1 1 1 -1 -1 1 1 -1 -1 1 1 -1 -1 1 -1 -1 -1 -1 1 -1'/>
 25 
                         <!-- TextureCoordinate DefaultTextureCoordinate is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5 -->
                         <TextureCoordinate DEF='DefaultTextureCoordinatepoint='0 0 1 0 1 1 0 1'/>
 26                      </IndexedFaceSet>
 27                      <Appearance>
 28                           <ImageTexture   url=' "images/front.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/front.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/front.png " '/>
 29                           <!-- Possible variation: experiment with indices to as alternative to TextureTransform rotations -->
 30 
                         <!-- TextureTransform RotateRight is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                         <TextureTransform DEF='RotateRightrotation='-1.57'/>
 31                      </Appearance>
 32                 </Shape>
 33                 <Viewpoint description='Back vieworientation='0 1 0 -1.57position='-8 0 0'/>
 34                 <Shape DEF='Back'>
 35                      <IndexedFaceSet coordIndex='7 6 5 4texCoordIndex='0 1 2 3'>
 36                           <Coordinate USE='Points'/>
 37                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 38                      </IndexedFaceSet>
 39                      <Appearance>
 40                           <ImageTexture   url=' "images/back.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/back.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/back.png " '/>
 41                           <TextureTransform USE='RotateRight'/>
 42                      </Appearance>
 43                 </Shape>
 44                 <Viewpoint description='Left vieworientation='0 1 0 3.1416position='0 0 -8'/>
 45                 <Shape DEF='Left'>
 46                      <IndexedFaceSet coordIndex='3 2 6 7texCoordIndex='0 1 2 3'>
 47                           <Coordinate USE='Points'/>
 48                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 49                      </IndexedFaceSet>
 50                      <Appearance>
 51                           <ImageTexture   url=' "images/left.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/left.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/left.png " '/>
 52                           <TextureTransform USE='RotateRight'/>
 53                      </Appearance>
 54                 </Shape>
 55                 <Viewpoint description='Right viewposition='0 0 8'/>
 56                 <Shape DEF='Right'>
 57                      <IndexedFaceSet coordIndex='0 4 5 1texCoordIndex='0 1 2 3'>
 58                           <Coordinate USE='Points'/>
 59                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 60                      </IndexedFaceSet>
 61                      <Appearance>
 62                           <ImageTexture   url=' "images/right.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/right.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/right.png " '/>
 63 
                         <!-- TextureTransform Rotate180 is a DEF node that has 1 USE node: USE_1 -->
                         <TextureTransform DEF='Rotate180rotation='3.14159'/>
 64                      </Appearance>
 65                 </Shape>
 66                 <Viewpoint description='Top vieworientation='1 0 0 -1.57position='0 8 0'/>
 67                 <Shape DEF='Top'>
 68                      <IndexedFaceSet coordIndex='0 3 7 4texCoordIndex='0 1 2 3'>
 69                           <Coordinate USE='Points'/>
 70                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 71                      </IndexedFaceSet>
 72                      <Appearance>
 73                           <ImageTexture   url=' "images/top.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/top.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/top.png " '/>
 74                           <TextureTransform DEF='RotateLeftrotation='1.57'/>
 75                      </Appearance>
 76                 </Shape>
 77                 <Viewpoint description='Bottom vieworientation='1 0 0 1.57position='0 -8 0'/>
 78                 <Shape DEF='Bottom'>
 79                      <IndexedFaceSet coordIndex='1 5 6 2texCoordIndex='0 1 2 3'>
 80                           <Coordinate USE='Points'/>
 81                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 82                      </IndexedFaceSet>
 83                      <Appearance>
 84                           <ImageTexture   url=' "images/bottom.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/bottom.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/bottom.png " '/>
 85                           <TextureTransform USE='Rotate180'/>
 86                      </Appearance>
 87                 </Shape>
 88            </Group>
 89       </Scene>
 90  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Back, Bottom, DefaultTextureCoordinate, Front, Left, Points, Right, Rotate180, RotateLeft, RotateRight, Top

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6
-->
X3D Tooltips element index: Appearance, Background, Coordinate, Group, head, ImageTexture, IndexedFaceSet, meta, Scene, Shape, TextureCoordinate, TextureTransform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestCubeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestCube.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. -->