| 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='title' content=' TestCube.x3d '/> |
| 6 | <meta name='creator' content='Don Brutzman'/> |
| 7 | <meta name='created' content='1 November 2008'/> |
| 8 | <meta name='modified' content='20 October 2019'/> |
| 9 | <meta name='description' content='Provides a cube-shaped test model with each side face individually labeled.'/> |
| 10 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.x3d '/> |
| 11 | <meta name='drawing' content='images/TestBoxImages.vsd'/> |
| 12 | <meta name='drawing' content='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/TestBoxImages.vsd'/> |
| 13 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestCube.x3d '/> |
| 14 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 15 | <meta name='license' content='../license.html'/> |
| 16 | </head> |
| 17 | <Scene> |
| 18 | <WorldInfo title='TestCube.x3d'/> |
| 19 | <Background skyColor='0.05 0.05 0.1'/> |
| 20 | <Group> |
| 21 | <Viewpoint description='Front view' orientation='0 1 0 1.57' position='8 0 0'/> |
| 22 | <Shape DEF='Front'> |
| 23 | <IndexedFaceSet coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
| 24 | |
| 25 | |
| 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='RotateRight' rotation='-1.57'/> |
| 31 | </Appearance> |
| 32 | </Shape> |
| 33 | <Viewpoint description='Back view' orientation='0 1 0 -1.57' position='-8 0 0'/> |
| 34 | <Shape DEF='Back'> |
| 35 | <IndexedFaceSet coordIndex='7 6 5 4' texCoordIndex='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 view' orientation='0 1 0 3.1416' position='0 0 -8'/> |
| 45 | <Shape DEF='Left'> |
| 46 | <IndexedFaceSet coordIndex='3 2 6 7' texCoordIndex='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 view' position='0 0 8'/> |
| 56 | <Shape DEF='Right'> |
| 57 | <IndexedFaceSet coordIndex='0 4 5 1' texCoordIndex='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 | |
| 64 | </Appearance> |
| 65 | </Shape> |
| 66 | <Viewpoint description='Top view' orientation='1 0 0 -1.57' position='0 8 0'/> |
| 67 | <Shape DEF='Top'> |
| 68 | <IndexedFaceSet coordIndex='0 3 7 4' texCoordIndex='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='RotateLeft' rotation='1.57'/> |
| 75 | </Appearance> |
| 76 | </Shape> |
| 77 | <Viewpoint description='Bottom view' orientation='1 0 0 1.57' position='0 -8 0'/> |
| 78 | <Shape DEF='Bottom'> |
| 79 | <IndexedFaceSet coordIndex='1 5 6 2' texCoordIndex='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> |
<!--
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.
-->