X3D Model Documentation: ExtrusionCrossSectionExampleTorus.x3d

  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='Immersive' 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='titlecontent='ExtrusionCrossSectionExampleTorus.x3d'/>
  6            <meta name='creatorcontent='Don Brutzman'/>
  7            <meta name='createdcontent='31 August 2003'/>
  8            <meta name='modifiedcontent='9 October 2023'/>
  9            <meta name='descriptioncontent='Torus example demonstrating cross-section prototype for Extrusion node that also draws spine line plus oriented, scaled cross sections at each spine point.'/>
 10            <meta name='hintcontent='Utilize ExtrusionCrossSection ProtoInstance as a Shape node (with containerField="children") rather than an Extrusion node (with containerField="geometry").'/>
 11            <meta name='referencecontent='ExtrusionExampleShip.x3d'/>
 12            <meta name='referencecontent='ExtrusionCrossSectionExampleShip.x3d'/>
 13            <meta name='referencecontent='ExtrusionCrossSectionPrototype.x3d'/>
 14            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter30-Scripts/Figure30.5ScriptTorusBuilder.x3d'/>
 15            <meta name='referencecontent='VRML 97 Specification, 6.18 Extrusion'/>
 16            <meta name='referencecontent='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#Extrusion'/>
 17            <meta name='Imagecontent='VRML 97 Specification, Figure 6.6'/>
 18            <meta name='Imagecontent='https://www.web3d.org/technicalinfo/specifications/vrml97/Images/Extrusion.gif'/>
 19            <meta name='referencecontent='http://realism.com/Web3D/Examples/Extrusion/_frame.html'/>
 20            <meta name='referencecontent='http://www.cs.brown.edu/~gss/vrml/drawpoly.html'/>
 21            <meta name='referencecontent='ExtrusionXj3dGoldberg1999.java'/>
 22            <meta name='referencecontent='http://web3d.metrolink.com/cgi-bin/cvsweb.cgi/x3d/src/com/sun/j3d/loaders/vrml97/impl/Attic/Extrusion.java'/>
 23            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionExampleTorus.x3d'/>
 24            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 25            <meta name='licensecontent='../license.html'/>
 26       </head>
<!--

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

<!-- to top Index for DEF node: CoordinateAxes

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: ExtrusionCrossSection
-->
 27       <Scene>
 28            <!-- Utilize ExtrusionCrossSection ProtoInstance as a Shape node (with containerField="children") rather than an Extrusion node (with containerField="geometry"). -->
 29            <WorldInfo title='ExtrusionCrossSectionExampleTorus.x3d'/>
 30            <ExternProtoDeclare name='ExtrusionCrossSectionappinfo='Shape prototype for Extrusion node that also draws spine line plus oriented scaled cross sections at each spine point' documentation='https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionPrototype.x3d'   url=' "ExtrusionCrossSectionPrototype.x3d#ExtrusionCrossSection" "https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionPrototype.x3d#ExtrusionCrossSection" "ExtrusionCrossSectionPrototype.wrl#ExtrusionCrossSection" "https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionPrototype.wrl#ExtrusionCrossSection" '>
 31                 <!-- run-time eventIn Extrusion-modification interfaces for VRML 97 compatibility -->
 32                 <field name='nametype='SFStringaccessType='initializeOnly'
                appinfo='Extrusion name'/>
 33                 <field name='crossSectiontype='MFVec2faccessType='initializeOnly'
                appinfo='Extrusion field'/>
 34                 <field name='spinetype='MFVec3faccessType='initializeOnly'
                appinfo='Extrusion field'/>
 35                 <field name='scaletype='MFVec2faccessType='initializeOnly'
                appinfo='Extrusion field'/>
 36                 <field name='orientationtype='MFRotationaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 37                 <field name='beginCaptype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 38                 <field name='endCaptype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 39                 <field name='ccwtype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 40                 <field name='convextype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 41                 <field name='creaseAngletype='SFFloataccessType='initializeOnly'
                appinfo='Extrusion field'/>
 42                 <field name='solidtype='SFBoolaccessType='initializeOnly'
                appinfo='Extrusion field'/>
 43                 <field name='spineColortype='SFColoraccessType='inputOutput'
                appinfo='emissiveColor of spine'/>
 44                 <field name='crossSectionColortype='SFColoraccessType='inputOutput'
                appinfo='diffuseColor of crossSection'/>
 45                 <field name='crossSectionTransparencytype='SFFloataccessType='inputOutput'
                appinfo='transparency of crossSection'/>
 46                 <field name='extrusionColortype='SFColoraccessType='inputOutput'
                appinfo='diffuseColor of extrusion hull'/>
 47                 <field name='extrusionTransparencytype='SFFloataccessType='inputOutput'
                appinfo='transparency of extrusion hull'/>
 48                 <field name='extrusionImageTexturetype='SFNodeaccessType='initializeOnly'
                appinfo='Image to apply to Extrusion'/>
 49                 <field name='extrusionTextureTransformtype='SFNodeaccessType='initializeOnly'
                appinfo='TextureTransform coordinates of image applied to Extrusion'/>
 50                 <field name='set_crossSectiontype='MFVec2faccessType='inputOnly'
                appinfo='Extrusion field'/>
 51                 <field name='set_spinetype='MFVec3faccessType='inputOnly'
                appinfo='Extrusion field'/>
 52                 <field name='set_scaletype='MFVec2faccessType='inputOnly'
                appinfo='Extrusion field'/>
 53                 <field name='set_orientationtype='MFRotationaccessType='inputOnly'
                appinfo='Extrusion field'/>
 54                 <field name='traceEnabledtype='SFBoolaccessType='initializeOnly'
                appinfo='Whether to provide initialization trace statements showing node construction'/>
 55            </ExternProtoDeclare>
 56            <!-- ==================== -->
 57            <!-- Example instance adapted from Figure15.12Torus.x3d -->
 58            <!-- https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter15-Extrusion/Figure15.12Torus.x3d -->
 59            <Viewpoint description='Torus crossSections, spine and hullorientation='-0.351 0.926 0.14 0.81position='10 5 10'/>
 60            <ProtoInstance name='ExtrusionCrossSection'>
 61                 <fieldValue name='namevalue='Torus'/>
 62                 <fieldValue name='crossSectionvalue='0 1 0.38 0.92 0.71 0.71 0.92 0.38 1 0 0.92 -0.38 0.71 -0.71 0.38 -0.92 0 -1 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1 0 -0.92 0.38 -0.71 0.71 -0.38 0.92 0 1'/>
 63                 <fieldValue name='spinevalue='2.00 0.0 0.00 1.85 0.0 0.77 1.41 0.0 1.41 0.77 0.0 1.85 0.00 0.0 2.00 -0.77 0.0 1.85 -1.41 0.0 1.41 -1.85 0.0 0.77 -2.00 0.0 0.00 -1.85 0.0 -0.77 -1.41 0.0 -1.41 -0.77 0.0 -1.85 0.00 0.0 -2.00 0.77 0.0 -1.85 1.41 0.0 -1.41 1.85 0.0 -0.77 2.00 0.0 0.00'/>
 64                 <fieldValue name='beginCapvalue='false'/>
 65                 <fieldValue name='endCapvalue='false'/>
 66                 <fieldValue name='creaseAnglevalue='1.57'/>
 67                 <fieldValue name='spineColorvalue='1 1 1'/>
 68                 <fieldValue name='crossSectionColorvalue='0.8 0.8 0'/>
 69                 <fieldValue name='crossSectionTransparencyvalue='0.1'/>
 70                 <fieldValue name='extrusionColorvalue='1 0 1'/>
 71                 <fieldValue name='extrusionTransparencyvalue='0.8'/>
 72                 <fieldValue name='traceEnabledvalue='false'/>
 73            </ProtoInstance>
 74            <Transform scale='4 4 4'>
 75                 <Inline DEF='CoordinateAxes'   url=' "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../../Savage/Tools/Authoring/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.x3d" "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "../../Savage/Tools/Authoring/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.wrl" '/>
 76            </Transform>
 77       </Scene>
 78  </X3D>
<!--

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

<!-- to top Index for DEF node: CoordinateAxes

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: ExtrusionCrossSection
-->
X3D Tooltips element index: ExternProtoDeclare, field, fieldValue, head, Inline, meta, ProtoInstance, Scene, 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.


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/Basic/course/ExtrusionCrossSectionExampleTorusIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionExampleTorus.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. -->