| 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='title' content=' CubeWithLabeledSides.x3d '/> |
| 6 | <meta name='description' content='Cube-shaped test model with faces on each side individually labeled.'/> |
| 7 | <meta name='creator' content='Don Brutzman'/> |
| 8 | <meta name='created' content='1 November 2008'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='drawing' content='images/CubeSideImages.vsd'/> |
| 11 | <meta name='reference' content='../Animation/CubeWithLabeledSidesViewpointSequencer.x3d'/> |
| 12 |
<meta name='Image' content='../Animation/CubeWithLabeledSidesViewpointSequencer.png' />
|
| 13 | <meta name='drawing' content='../Animation/CubeWithLabeledSidesViewpointSequencer.vsd'/> |
| 14 | <meta name='reference' content='../Visualization/BackgroundCube.x3d'/> |
| 15 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestCube.x3d '/> |
| 16 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.x3d '/> |
| 17 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 18 | <meta name='license' content='../license.html'/> |
| 19 | </head> |
| 20 | <Scene> |
| 21 | <WorldInfo title='CubeWithLabeledSides.x3d'/> |
| 22 | <Background skyColor='0.1 0.1 0.1'/> |
| 23 | <Group> |
| 24 | <Viewpoint DEF='FrontView' description='Front view' orientation='0 1 0 1.57' position='8 0 0'/> |
| 25 | <Shape DEF='Front'> |
| 26 | <IndexedFaceSet coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
| 27 | |
| 28 | |
| 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='RotateRight' rotation='-1.57'/> |
| 34 | </Appearance> |
| 35 | </Shape> |
| 36 | <Viewpoint DEF='LeftView' description='Left view' orientation='0 1 0 3.1416' position='0 0 -8'/> |
| 37 | <Shape DEF='Left'> |
| 38 | <IndexedFaceSet coordIndex='3 2 6 7' texCoordIndex='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='TopView' description='Top view' orientation='1 0 0 -1.57' position='0 8 0'/> |
| 48 | <Shape DEF='Top'> |
| 49 | <IndexedFaceSet coordIndex='0 3 7 4' texCoordIndex='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='RotateLeft' rotation='1.57' scale='0.9 0.9'/> |
| 56 | </Appearance> |
| 57 | </Shape> |
| 58 | <Viewpoint DEF='BackView' description='Back view' orientation='0 1 0 -1.57' position='-8 0 0'/> |
| 59 | <Shape DEF='Back'> |
| 60 | <IndexedFaceSet coordIndex='7 6 5 4' texCoordIndex='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='RightView' description='Right view' position='0 0 8'/> |
| 70 | <Shape DEF='Right'> |
| 71 | <IndexedFaceSet coordIndex='0 4 5 1' texCoordIndex='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 | |
| 78 | </Appearance> |
| 79 | </Shape> |
| 80 | <Viewpoint DEF='BottomView' description='Bottom view' orientation='1 0 0 1.57' position='0 -8 0'/> |
| 81 | <Shape DEF='Bottom'> |
| 82 | <IndexedFaceSet coordIndex='1 5 6 2' texCoordIndex='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> |
<!--
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)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->