X3D Model Documentation: CubeWithLabeledSides.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='CubeWithLabeledSides.x3d'/>
  6            <meta name='descriptioncontent='Cube-shaped test model with faces on each side individually labeled.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='1 November 2008'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='drawingcontent='images/CubeSideImages.vsd'/>
 11            <meta name='referencecontent='../Animation/CubeWithLabeledSidesViewpointSequencer.x3d'/>
 12            <meta name='Imagecontent='../Animation/CubeWithLabeledSidesViewpointSequencer.png'/>
 13            <meta name='drawingcontent='../Animation/CubeWithLabeledSidesViewpointSequencer.vsd'/>
 14            <meta name='referencecontent='../Visualization/BackgroundCube.x3d'/>
 15            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestCube.x3d'/>
 16            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.x3d'/>
 17            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 18            <meta name='licensecontent='../license.html'/>
 19       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Back, BackView, Bottom, BottomView, DefaultTextureCoordinate, Front, FrontView, Left, LeftView, Points, Right, RightView, Rotate180, RotateLeft, RotateRight, Top, TopView

Index for Viewpoint nodes: BackView, BottomView, FrontView, LeftView, RightView, TopView
-->
 20       <Scene>
 21            <WorldInfo title='CubeWithLabeledSides.x3d'/>
 22            <Background skyColor='0.1 0.1 0.1'/>
 23            <Group>
 24                 <Viewpoint DEF='FrontViewdescription='Front vieworientation='0 1 0 1.57position='8 0 0'/>
 25                 <Shape DEF='Front'>
 26                      <IndexedFaceSet coordIndex='0 1 2 3texCoordIndex='0 1 2 3'>
 27 
                         <!-- 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'/>
 28 
                         <!-- 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'/>
 29                      </IndexedFaceSet>
 30                      <Appearance>
 31                           <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 " '/>
 32                           <!-- Possible variation: experiment with indices to as alternative to TextureTransform rotations -->
 33 
                         <!-- TextureTransform RotateRight is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                         <TextureTransform DEF='RotateRightrotation='-1.57'/>
 34                      </Appearance>
 35                 </Shape>
 36                 <Viewpoint DEF='LeftViewdescription='Left vieworientation='0 1 0 3.1416position='0 0 -8'/>
 37                 <Shape DEF='Left'>
 38                      <IndexedFaceSet coordIndex='3 2 6 7texCoordIndex='0 1 2 3'>
 39                           <Coordinate USE='Points'/>
 40                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 41                      </IndexedFaceSet>
 42                      <Appearance>
 43                           <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 " '/>
 44                           <TextureTransform USE='RotateRight'/>
 45                      </Appearance>
 46                 </Shape>
 47                 <Viewpoint DEF='TopViewdescription='Top vieworientation='1 0 0 -1.57position='0 8 0'/>
 48                 <Shape DEF='Top'>
 49                      <IndexedFaceSet coordIndex='0 3 7 4texCoordIndex='0 1 2 3'>
 50                           <Coordinate USE='Points'/>
 51                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 52                      </IndexedFaceSet>
 53                      <Appearance>
 54                           <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 " '/>
 55                           <TextureTransform DEF='RotateLeftrotation='1.57scale='0.9 0.9'/>
 56                      </Appearance>
 57                 </Shape>
 58                 <Viewpoint DEF='BackViewdescription='Back vieworientation='0 1 0 -1.57position='-8 0 0'/>
 59                 <Shape DEF='Back'>
 60                      <IndexedFaceSet coordIndex='7 6 5 4texCoordIndex='0 1 2 3'>
 61                           <Coordinate USE='Points'/>
 62                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 63                      </IndexedFaceSet>
 64                      <Appearance>
 65                           <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 " '/>
 66                           <TextureTransform USE='RotateRight'/>
 67                      </Appearance>
 68                 </Shape>
 69                 <Viewpoint DEF='RightViewdescription='Right viewposition='0 0 8'/>
 70                 <Shape DEF='Right'>
 71                      <IndexedFaceSet coordIndex='0 4 5 1texCoordIndex='0 1 2 3'>
 72                           <Coordinate USE='Points'/>
 73                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 74                      </IndexedFaceSet>
 75                      <Appearance>
 76                           <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 " '/>
 77 
                         <!-- TextureTransform Rotate180 is a DEF node that has 1 USE node: USE_1 -->
                         <TextureTransform DEF='Rotate180rotation='3.14159'/>
 78                      </Appearance>
 79                 </Shape>
 80                 <Viewpoint DEF='BottomViewdescription='Bottom vieworientation='1 0 0 1.57position='0 -8 0'/>
 81                 <Shape DEF='Bottom'>
 82                      <IndexedFaceSet coordIndex='1 5 6 2texCoordIndex='0 1 2 3'>
 83                           <Coordinate USE='Points'/>
 84                           <TextureCoordinate USE='DefaultTextureCoordinate'/>
 85                      </IndexedFaceSet>
 86                      <Appearance>
 87                           <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 " '/>
 88                           <TextureTransform USE='Rotate180'/>
 89                      </Appearance>
 90                 </Shape>
 91            </Group>
 92       </Scene>
 93  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Back, BackView, Bottom, BottomView, DefaultTextureCoordinate, Front, FrontView, Left, LeftView, Points, Right, RightView, Rotate180, RotateLeft, RotateRight, Top, TopView

Index for Viewpoint nodes: BackView, BottomView, FrontView, LeftView, RightView, TopView
-->
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/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSidesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.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. -->