X3D Model Documentation: ExtrusionExamplesTest.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='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='titlecontent='ExtrusionExamplesTest.x3d'/>
  6            <meta name='descriptioncontent='Extrusion examples for testing and debugging'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='18 August 2012'/>
  9            <meta name='modifiedcontent='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='Imagecontent='ExtrusionExamplesTest.BScontact.png'/>
 12            <meta name='Imagecontent='ExtrusionExamplesTest.Coin3D.png'/>
 13            <meta name='Imagecontent='ExtrusionExamplesTest.FreeWrl.png'/>
 14            <meta name='Imagecontent='ExtrusionExamplesTest.H3DViewer.png'/>
 15            <meta name='Imagecontent='ExtrusionExamplesTest.InstantReality.png'/>
 16            <meta name='Imagecontent='ExtrusionExamplesTest.OctagaVS.png'/>
 17            <meta name='Imagecontent='ExtrusionExamplesTest.view3dscene.png'/>
 18            <meta name='Imagecontent='ExtrusionExamplesTest.X3DOM.png'/>
 19            <meta name='Imagecontent='ExtrusionExamplesTest.Xj3D.png'/>
 20            <meta name='referencecontent='ExtrusionExamplesTestXj3dConsoleOutput.txt'/>
 21            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/ExtrusionExamplesTest.x3d'/>
 22            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 23            <meta name='licensecontent='../license.html'/>
 24       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: AppearanceDefault, Extrusion10Right45DegreeBendsClosedCircularCrossection, Extrusion1Default, Extrusion2CircularCrossSection12, Extrusion3CircularCrossSection60, Extrusion4CircularCrossSection12SemiCircularSpine, Extrusion5CircularCrossSection12CircularSpine, Extrusion6DefaultSideways, Extrusion7Right45DegreeBends, Extrusion8Right45DegreeBendsClosed, Extrusion9CircularSpineSquareCrossection

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6, Viewpoint_7, Viewpoint_8, Viewpoint_9, Viewpoint_10, Viewpoint_11
-->
 25       <Scene>
 26            <WorldInfo title='ExtrusionExamplesTest.x3d'/>
 27            <Viewpoint description='Extrusion examplesorientation='1 0 0 -0.244979position='0 4 16'/>
 28            <Background skyColor='0.380392 0.607843 1'/>
 29            <Transform translation='-6 1 0'>
 30                 <Viewpoint description='Extrusion1 Defaultposition='0 0 4'/>
 31                 <Shape>
 32                      <Extrusion DEF='Extrusion1Default'/>
 33 
                    <!-- Appearance AppearanceDefault is a DEF node that has 9 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6, USE_7, USE_8, USE_9 -->
                    <Appearance DEF='AppearanceDefault'>
 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 CircularCrossSection12position='0 0 4'/>
 40                 <Shape>
 41                      <Extrusion DEF='Extrusion2CircularCrossSection12crossSection='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 CircularCrossSection60position='0 0 4'/>
 47                 <Shape>
 48                      <Extrusion DEF='Extrusion3CircularCrossSection60crossSection='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.261799translation='3 1 0'>
 53                 <Viewpoint description='Extrusion4 CircularCrossSection12SemiCircularSpineposition='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='Extrusion4CircularCrossSection12SemiCircularSpinecrossSection='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 1scale='0.2 0.2spine='-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 CircularCrossSection12CircularSpineposition='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='Extrusion5CircularCrossSection12CircularSpinecrossSection='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 1scale='0.2 0.2spine='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 DefaultSidewaysposition='0 0 4'/>
 71                 <Shape>
 72                      <Extrusion DEF='Extrusion6DefaultSidewaysspine='0 0 0 1 0 0'/>
 73                      <Appearance USE='AppearanceDefault'/>
 74                 </Shape>
 75            </Transform>
 76            <Transform translation='-4 -1 0'>
 77                 <Viewpoint description='Extrusion7 Right45DegreeBendsposition='0 0 4'/>
 78                 <Shape>
 79                      <Extrusion DEF='Extrusion7Right45DegreeBendscrossSection='0.1 0.1 0.1 -0.1 -0.1 -0.1 -0.1 0.1 0.1 0.1spine='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 Right45DegreeBendsClosedposition='0 0 4'/>
 85                 <Shape>
 86                      <Extrusion DEF='Extrusion8Right45DegreeBendsClosedcrossSection='0.1 0.1 0.1 -0.1 -0.1 -0.1 -0.1 0.1 0.1 0.1spine='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 CircularSpineSquareCrossectionposition='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='Extrusion9CircularSpineSquareCrossectioncrossSection='0.1 0.1 0.1 -0.1 -0.1 -0.1 -0.1 0.1 0.1 0.1spine='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 Right45DegreeBendsClosedCircularCrossectionposition='0 0 4'/>
100                 <Shape>
101                      <Extrusion DEF='Extrusion10Right45DegreeBendsClosedCircularCrossectioncrossSection='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.1spine='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>
<!--

<!-- -->

<!-- to top Index for DEF nodes: AppearanceDefault, Extrusion10Right45DegreeBendsClosedCircularCrossection, Extrusion1Default, Extrusion2CircularCrossSection12, Extrusion3CircularCrossSection60, Extrusion4CircularCrossSection12SemiCircularSpine, Extrusion5CircularCrossSection12CircularSpine, Extrusion6DefaultSideways, Extrusion7Right45DegreeBends, Extrusion8Right45DegreeBendsClosed, Extrusion9CircularSpineSquareCrossection

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6, Viewpoint_7, Viewpoint_8, Viewpoint_9, Viewpoint_10, Viewpoint_11
-->
X3D Tooltips element index: Appearance, Background, Extrusion, head, Material, meta, Scene, Shape, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/ExtrusionExamplesTestIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/ExtrusionExamplesTest.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. -->