| 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='Immersive' 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=' ExtrusionExamplesTest.x3d '/> |
| 6 | <meta name='description' content='Extrusion examples for testing and debugging'/> |
| 7 | <meta name='creator' content='Don Brutzman'/> |
| 8 | <meta name='created' content='18 August 2012'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name=' warning ' content=' several tests (marked TODO) are failing under Xj3D but work satisfactorily on other X3D players '/> |
| 11 |
<meta name='Image' content='ExtrusionExamplesTest.BScontact.png' />
|
| 12 |
<meta name='Image' content='ExtrusionExamplesTest.Coin3D.png' />
|
| 13 |
<meta name='Image' content='ExtrusionExamplesTest.FreeWrl.png' />
|
| 14 |
<meta name='Image' content='ExtrusionExamplesTest.H3DViewer.png' />
|
| 15 |
<meta name='Image' content='ExtrusionExamplesTest.InstantReality.png' />
|
| 16 |
<meta name='Image' content='ExtrusionExamplesTest.OctagaVS.png' />
|
| 17 |
<meta name='Image' content='ExtrusionExamplesTest.view3dscene.png' />
|
| 18 |
<meta name='Image' content='ExtrusionExamplesTest.X3DOM.png' />
|
| 19 |
<meta name='Image' content='ExtrusionExamplesTest.Xj3D.png' />
|
| 20 | <meta name='reference' content=' ExtrusionExamplesTestXj3dConsoleOutput.txt '/> |
| 21 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/ExtrusionExamplesTest.x3d '/> |
| 22 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 23 | <meta name='license' content='../license.html'/> |
| 24 | </head> |
| 25 | <Scene> |
| 26 | <WorldInfo title='ExtrusionExamplesTest.x3d'/> |
| 27 | <Viewpoint description='Extrusion examples' orientation='1 0 0 -0.244979' position='0 4 16'/> |
| 28 | <Background skyColor='0.380392 0.607843 1'/> |
| 29 | <Transform translation='-6 1 0'> |
| 30 | <Viewpoint description='Extrusion1 Default' position='0 0 4'/> |
| 31 | <Shape> |
| 32 | <Extrusion DEF='Extrusion1Default'/> |
| 33 | |
| 34 | <Material emissiveColor='0.24 0.2 0.8'/> |
| 35 | </Appearance> |
| 36 | </Shape> |
| 37 | </Transform> |
| 38 | <Transform translation='-3 1 0'> |
| 39 | <Viewpoint description='Extrusion2 CircularCrossSection12' position='0 0 4'/> |
| 40 | <Shape> |
| 41 | <Extrusion DEF='Extrusion2CircularCrossSection12' crossSection='0 1 0.5 0.866 0.866 0.5 1 0 0.866 -0.5 0.5 -0.866 0 -1 -0.5 -0.866 -0.866 -0.5 -1 -0 -0.866 0.5 -0.5 0.866 0 1'/> |
| 42 | <Appearance USE='AppearanceDefault'/> |
| 43 | </Shape> |
| 44 | </Transform> |
| 45 | <Transform translation='0 1 0'> |
| 46 | <Viewpoint description='Extrusion3 CircularCrossSection60' position='0 0 4'/> |
| 47 | <Shape> |
| 48 | <Extrusion DEF='Extrusion3CircularCrossSection60' crossSection='0 1 0.105 0.995 0.208 0.978 0.309 0.951 0.407 0.914 0.5 0.866 0.588 0.809 0.669 0.743 0.743 0.669 0.809 0.588 0.866 0.5 0.914 0.407 0.951 0.309 0.978 0.208 0.995 0.105 1 0 0.995 -0.105 0.978 -0.208 0.951 -0.309 0.914 -0.407 0.866 -0.5 0.809 -0.588 0.743 -0.669 0.669 -0.743 0.588 -0.809 0.5 -0.866 0.407 -0.914 0.309 -0.951 0.208 -0.978 0.105 -0.995 0 -1 -0.105 -0.995 -0.208 -0.978 -0.309 -0.951 -0.407 -0.914 -0.5 -0.866 -0.588 -0.809 -0.669 -0.743 -0.743 -0.669 -0.809 -0.588 -0.866 -0.5 -0.914 -0.407 -0.951 -0.309 -0.978 -0.208 -0.995 -0.105 -1 -0 -0.995 0.105 -0.978 0.208 -0.951 0.309 -0.914 0.407 -0.866 0.5 -0.809 0.588 -0.743 0.669 -0.669 0.743 -0.588 0.809 -0.5 0.866 -0.407 0.914 -0.309 0.951 -0.208 0.978 -0.105 0.995 0 1'/> |
| 49 | <Appearance USE='AppearanceDefault'/> |
| 50 | </Shape> |
| 51 | </Transform> |
| 52 | <Transform rotation='0 0 1 0.261799' translation='3 1 0'> |
| 53 | <Viewpoint description='Extrusion4 CircularCrossSection12SemiCircularSpine' position='0 0 4'/> |
| 54 | <Shape> |
| 55 | <!-- TODO isolated problem: Xj3D rotations look like SCP is mistaken and (unspecified) scales are bogus. mesh connectivity seems OK. crossSection is closed, spine is open. --> |
| 56 | <Extrusion DEF='Extrusion4CircularCrossSection12SemiCircularSpine' crossSection='0 1 0.5 0.866 0.866 0.5 1 0 0.866 -0.5 0.5 -0.866 0 -1 -0.5 -0.866 -0.866 -0.5 -1 -0 -0.866 0.5 -0.5 0.866 0 1' scale='0.2 0.2' spine='-1 0 0 -0.866 0.5 0 -0.5 0.866 0 0 1 0 0.5 0.866 0 0.866 0.5 0 1 0 0 0.866 -0.5 0'/> |
| 57 | <Appearance USE='AppearanceDefault'/> |
| 58 | </Shape> |
| 59 | </Transform> |
| 60 | <Transform translation='6 2 0'> |
| 61 | <Viewpoint description='Extrusion5 CircularCrossSection12CircularSpine' position='0 0 4'/> |
| 62 | <Shape> |
| 63 | <!-- TODO isolated problem: Xj3D rotations look like SCP is mistaken and (unspecified) scales are bogus. mesh connectivity seems OK. crossSection is closed, spine is closed. --> |
| 64 | <Extrusion DEF='Extrusion5CircularCrossSection12CircularSpine' crossSection='0 1 0.5 0.866 0.866 0.5 1 0 0.866 -0.5 0.5 -0.866 0 -1 -0.5 -0.866 -0.866 -0.5 -1 -0 -0.866 0.5 -0.5 0.866 0 1' scale='0.2 0.2' spine='0 1 0 0.5 0.866 0 0.866 0.5 0 1 0 0 0.866 -0.5 0 0.5 -0.866 0 0 -1 0 -0.5 -0.866 0 -0.866 -0.5 0 -1 -0 0 -0.866 0.5 0 -0.5 0.866 0 0 1 0'/> |
| 65 | <Appearance USE='AppearanceDefault'/> |
| 66 | </Shape> |
| 67 | </Transform> |
| 68 | <!-- ========================================= --> |
| 69 | <Transform translation='-6.5 -1 0'> |
| 70 | <Viewpoint description='Extrusion6 DefaultSideways' position='0 0 4'/> |
| 71 | <Shape> |
| 72 | <Extrusion DEF='Extrusion6DefaultSideways' spine='0 0 0 1 0 0'/> |
| 73 | <Appearance USE='AppearanceDefault'/> |
| 74 | </Shape> |
| 75 | </Transform> |
| 76 | <Transform translation='-4 -1 0'> |
| 77 | <Viewpoint description='Extrusion7 Right45DegreeBends' position='0 0 4'/> |
| 78 | <Shape> |
| 79 | <Extrusion DEF='Extrusion7Right45DegreeBends' crossSection='0.1 0.1 0.1 -0.1 -0.1 -0.1 -0.1 0.1 0.1 0.1' spine='0 0 0 0 0.5 0 0.5 1 0 1 1 0 1.5 1 0 2 0.5 0 2 0 0'/> |
| 80 | <Appearance USE='AppearanceDefault'/> |
| 81 | </Shape> |
| 82 | </Transform> |
| 83 | <Transform translation='-1 -1 0'> |
| 84 | <Viewpoint description='Extrusion8 Right45DegreeBendsClosed' position='0 0 4'/> |
| 85 | <Shape> |
| 86 | <Extrusion DEF='Extrusion8Right45DegreeBendsClosed' crossSection='0.1 0.1 0.1 -0.1 -0.1 -0.1 -0.1 0.1 0.1 0.1' spine='0 0 0 0 0.5 0 0.5 1 0 1 1 0 1.5 1 0 2 0.5 0 2 0 0 2 -0.5 0 1.5 -1 0 1 -1 0 0.5 -1 0 0 -0.5 0 0 0 0'/> |
| 87 | <Appearance USE='AppearanceDefault'/> |
| 88 | </Shape> |
| 89 | </Transform> |
| 90 | <Transform translation='3 -1 0'> |
| 91 | <Viewpoint description='Extrusion9 CircularSpineSquareCrossection' position='0 0 4'/> |
| 92 | <Shape> |
| 93 | <!-- TODO isolated problem: Xj3D end segments squeezed (but not shut) when crossSection is closed, regardless of beginCap='true' endCap='true' --> |
| 94 | <Extrusion DEF='Extrusion9CircularSpineSquareCrossection' crossSection='0.1 0.1 0.1 -0.1 -0.1 -0.1 -0.1 0.1 0.1 0.1' spine='0 1 0 0.309 0.951 0 0.588 0.809 0 0.809 0.588 0 0.951 0.309 0 1 0 0 0.951 -0.309 0 0.809 -0.588 0 0.588 -0.809 0 0.309 -0.951 0 0 -1 0 -0.309 -0.951 0 -0.588 -0.809 0 -0.809 -0.588 0 -0.951 -0.309 0 -1 -0 0 -0.951 0.309 0 -0.809 0.588 0 -0.588 0.809 0 -0.309 0.951 0 0 1 0'/> |
| 95 | <Appearance USE='AppearanceDefault'/> |
| 96 | </Shape> |
| 97 | </Transform> |
| 98 | <Transform translation='5 -1 0'> |
| 99 | <Viewpoint description='Extrusion10 Right45DegreeBendsClosedCircularCrossection' position='0 0 4'/> |
| 100 | <Shape> |
| 101 | <Extrusion DEF='Extrusion10Right45DegreeBendsClosedCircularCrossection' crossSection='0 0.1 0.0383 0.0924 0.0707 0.0707 0.0924 0.0383 0.1 0 0.0924 -0.0383 0.0707 -0.0707 0.0383 -0.0924 0 -0.1 -0.0383 -0.0924 -0.0707 -0.0707 -0.0924 -0.0383 -0.1 -0 -0.0924 0.0383 -0.0707 0.0707 -0.0383 0.0924 0 0.1' spine='0 0 0 0 0.5 0 0.5 1 0 1 1 0 1.5 1 0 2 0.5 0 2 0 0 2 -0.5 0 1.5 -1 0 1 -1 0 0.5 -1 0 0 -0.5 0 0 0 0'/> |
| 102 | <Appearance USE='AppearanceDefault'/> |
| 103 | </Shape> |
| 104 | </Transform> |
| 105 | </Scene> |
| 106 | </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.
-->