X3D Model Documentation: ExtrusionPentagon.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='ExtrusionPentagon.x3d'/>
  6            <meta name='descriptioncontent='Simple regular pentagon extruded vertically, shown side-by-side with an ExtrusionCrossSection visualization.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='contributorcontent='U.S. Naval Postgraduate School (NPS)'/>
  9            <meta name='createdcontent='3 September 2005'/>
 10            <meta name='modifiedcontent='20 January 2024'/>
 11            <meta name='subjectcontent='Extrusion pentagon'/>
 12            <meta name='referencecontent='https://en.wikipedia.org/wiki/Extrusion'/>
 13            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ExtrusionPentagon.x3d'/>
 14            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 15            <meta name='licensecontent='../license.html'/>
 16       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: ExamineMode, FlyPanNavigation, PentagonExtrusion

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3

Index for ExternProtoDeclare definition: ExtrusionCrossSection
-->
 17       <Scene>
 18            <WorldInfo title='ExtrusionPentagon.x3d'/>
 19            <NavigationInfo DEF='ExamineMode'/>
 20            <NavigationInfo DEF='FlyPanNavigationtype='"FLY" "ANY"'/>
 21            <Background skyColor='1 1 1'/>
 22            <Viewpoint description='Extrusion Pentagonorientation='-1 0 0 0.2position='0 3.17 12.85'/>
 23            <Viewpoint description='Oblique view from aboveorientation='-1 0.015 -0.006 0.78position='0.25 8.98 8.99'/>
 24            <Viewpoint description='Overhead vieworientation='1 0 0 -1.57position='0 13.15 0'/>
 25            <Background groundColor='0.9 0.9 0.9skyColor='0.9 0.9 0.9'/>
 26            <Transform translation='-4 0 0'>
 27                 <Shape>
 28                      <!-- be sure to order cross-section points so that normal is upward -->
 29                      <Extrusion crossSection='-3.5 -1 -2.1 2.9 2.2 2.9 3.6 -1 0 -3.5 -3.5 -1scale='1 1 1 1 0.2 0.2spine='0 0 0 0 1 0 0 1.6 0'>
 30                           <!-- spine is open, crossSection is closed -->
 31                      </Extrusion>
 32                      <Appearance>
 33                           <Material diffuseColor='0.2 0.6 0.5'/>
 34                      </Appearance>
 35                 </Shape>
 36            </Transform>
 37            <!-- Utilize ExtrusionCrossSection ProtoInstance as a Shape node (with containerField="children") rather than an Extrusion node (with containerField="geometry"). -->
 38            <!-- ExtrusionCrossSection is a Prototype, which are explained in Chapter 14. -->
 39            <!-- TODO update original version of ExtrusionCrossSectionPrototype.js at X3D Examples Archive Basic course -->
 40            <ExternProtoDeclare name='ExtrusionCrossSectionappinfo='Shape prototype for Extrusion node that also draws spine line plus oriented scaled cross sections at each spine point'   url=' "ExtrusionCrossSectionPrototype.x3d#ExtrusionCrossSection" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ExtrusionCrossSectionPrototype.x3d#ExtrusionCrossSection" "ExtrusionCrossSectionPrototype.wrl#ExtrusionCrossSection" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ExtrusionCrossSectionPrototype.wrl#ExtrusionCrossSection" '>
 41                 <!-- run-time eventIn Extrusion-modification interfaces for VRML 97 compatibility -->
 42                 <field name='nametype='SFStringaccessType='initializeOnly'
                appinfo='Extrusion name'/>
 43                 <field name='crossSectiontype='MFVec2faccessType='initializeOnly'
                appinfo='Extrusion field'/>
 44                 <field name='spinetype='MFVec3faccessType='initializeOnly'
                appinfo='Extrusion field'/>
 45                 <field name='scaletype='MFVec2faccessType='initializeOnly'
                appinfo='Extrusion field'/>
 46                 <field name='orientationtype='MFRotationaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 47                 <field name='beginCaptype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 48                 <field name='endCaptype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 49                 <field name='ccwtype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 50                 <field name='convextype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 51                 <field name='creaseAngletype='SFFloataccessType='initializeOnly'
                appinfo='Extrusion field'/>
 52                 <field name='solidtype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 53                 <field name='extrusionImageTexturetype='SFNodeaccessType='initializeOnly'
                appinfo='Image to apply to Extrusion'/>
 54                 <field name='extrusionTextureTransformtype='SFNodeaccessType='initializeOnly'
                appinfo='TextureTransform coordinates of image applied to Extrusion'/>
 55                 <field name='set_crossSectiontype='MFVec2faccessType='inputOnly'
                appinfo='Extrusion field'/>
 56                 <field name='set_spinetype='MFVec3faccessType='inputOnly'
                appinfo='Extrusion field'/>
 57                 <field name='set_scaletype='MFVec2faccessType='inputOnly'
                appinfo='Extrusion field'/>
 58                 <field name='set_orientationtype='MFRotationaccessType='inputOnly'
                appinfo='Extrusion field'/>
 59                 <field name='traceEnabledtype='SFBoolaccessType='initializeOnly'
                appinfo='Whether to provide initialization trace statements showing node construction'/>
 60                 <field name='spineColortype='SFColoraccessType='inputOutput'
                appinfo='emissiveColor of spine'/>
 61                 <field name='crossSectionColortype='SFColoraccessType='inputOutput'
                appinfo='diffuseColor of crossSection'/>
 62                 <field name='crossSectionTransparencytype='SFFloataccessType='inputOutput'
                appinfo='transparency of crossSection'/>
 63                 <field name='extrusionColortype='SFColoraccessType='inputOutput'
                appinfo='diffuseColor of extrusion hull'/>
 64                 <field name='extrusionTransparencytype='SFFloataccessType='inputOutput'
                appinfo='transparency of extrusion hull'/>
 65            </ExternProtoDeclare>
 66            <Transform translation='4 0 0'>
 67                 <ProtoInstance name='ExtrusionCrossSectionDEF='PentagonExtrusion'>
 68                      <fieldValue name='namevalue='PentagonExtrusion'/>
 69                      <fieldValue name='crossSectionvalue='-3.5 -1 -2.1 2.9 2.2 2.9 3.6 -1 0 -3.5 -3.5 -1'/>
 70                      <fieldValue name='spinevalue='0 0 0 0 1 0 0 1.6 0'/>
 71                      <fieldValue name='scalevalue='1 1 1 1 0.2 0.2'/>
 72                      <fieldValue name='ccwvalue='true'/>
 73                      <fieldValue name='spineColorvalue='0.7 0.7 0'/>
 74                      <fieldValue name='crossSectionColorvalue='0.6 0.6 0.2'/>
 75                      <fieldValue name='extrusionColorvalue='0.3 0.6 0.6'/>
 76                      <fieldValue name='extrusionTransparencyvalue='0.6'/>
 77                      <fieldValue name='traceEnabledvalue='false'/>
 78                 </ProtoInstance>
 79            </Transform>
 80       </Scene>
 81  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: ExamineMode, FlyPanNavigation, PentagonExtrusion

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3

Index for ExternProtoDeclare definition: ExtrusionCrossSection
-->
X3D Tooltips element index: Appearance, Background, ExternProtoDeclare, Extrusion, field, fieldValue, head, Material, meta, NavigationInfo, ProtoInstance, Scene, Shape, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

PentagonExtrusion
ProtoInstance
ExtrusionCrossSection
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ExtrusionPentagonIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ExtrusionPentagon.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->