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='title' content='ExtrusionCrossSectionExampleTorus.x3d'/> |
6 | <meta name='creator' content='Don Brutzman'/> |
7 | <meta name='created' content='31 August 2003'/> |
8 | <meta name='modified' content='9 October 2023'/> |
9 | <meta name='description' content='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='hint' content='Utilize ExtrusionCrossSection ProtoInstance as a Shape node (with containerField="children") rather than an Extrusion node (with containerField="geometry").'/> |
11 | <meta name='reference' content='ExtrusionExampleShip.x3d'/> |
12 | <meta name='reference' content='ExtrusionCrossSectionExampleShip.x3d'/> |
13 | <meta name='reference' content='ExtrusionCrossSectionPrototype.x3d'/> |
14 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter30-Scripts/Figure30.5ScriptTorusBuilder.x3d'/> |
15 | <meta name='reference' content='VRML 97 Specification, 6.18 Extrusion'/> |
16 | <meta name='reference' content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#Extrusion'/> |
17 | <meta name='Image' content='VRML 97 Specification, Figure 6.6'/> |
18 | <meta name='Image' content='https://www.web3d.org/technicalinfo/specifications/vrml97/Images/Extrusion.gif'/> |
19 | <meta name='reference' content='http://realism.com/Web3D/Examples/Extrusion/_frame.html'/> |
20 | <meta name='reference' content='http://www.cs.brown.edu/~gss/vrml/drawpoly.html'/> |
21 | <meta name='reference' content='ExtrusionXj3dGoldberg1999.java'/> |
22 | <meta name='reference' content='http://web3d.metrolink.com/cgi-bin/cvsweb.cgi/x3d/src/com/sun/j3d/loaders/vrml97/impl/Attic/Extrusion.java'/> |
23 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/course/ExtrusionCrossSectionExampleTorus.x3d'/> |
24 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
25 | <meta name='license' content='../license.html'/> |
26 | </head> |
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='ExtrusionCrossSection' appinfo='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='name' type='SFString' accessType='initializeOnly'
appinfo='Extrusion name'/> |
33 |
<field name='crossSection' type='MFVec2f' accessType='initializeOnly'
appinfo='Extrusion field'/> |
34 |
<field name='spine' type='MFVec3f' accessType='initializeOnly'
appinfo='Extrusion field'/> |
35 |
<field name='scale' type='MFVec2f' accessType='initializeOnly'
appinfo='Extrusion field'/> |
36 |
<field name='orientation' type='MFRotation' accessType='initializeOnly'
appinfo='Extrusion field'/> |
37 |
<field name='beginCap' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
38 |
<field name='endCap' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
39 |
<field name='ccw' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
40 |
<field name='convex' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
41 |
<field name='creaseAngle' type='SFFloat' accessType='initializeOnly'
appinfo='Extrusion field'/> |
42 |
<field name='solid' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
43 |
<field name='spineColor' type='SFColor' accessType='inputOutput'
appinfo='emissiveColor of spine'/> |
44 |
<field name='crossSectionColor' type='SFColor' accessType='inputOutput'
appinfo='diffuseColor of crossSection'/> |
45 |
<field name='crossSectionTransparency' type='SFFloat' accessType='inputOutput'
appinfo='transparency of crossSection'/> |
46 |
<field name='extrusionColor' type='SFColor' accessType='inputOutput'
appinfo='diffuseColor of extrusion hull'/> |
47 |
<field name='extrusionTransparency' type='SFFloat' accessType='inputOutput'
appinfo='transparency of extrusion hull'/> |
48 |
<field name='extrusionImageTexture' type='SFNode' accessType='initializeOnly'
appinfo='Image to apply to Extrusion'/> |
49 |
<field name='extrusionTextureTransform' type='SFNode' accessType='initializeOnly'
appinfo='TextureTransform coordinates of image applied to Extrusion'/> |
50 |
<field name='set_crossSection' type='MFVec2f' accessType='inputOnly'
appinfo='Extrusion field'/> |
51 |
<field name='set_spine' type='MFVec3f' accessType='inputOnly'
appinfo='Extrusion field'/> |
52 |
<field name='set_scale' type='MFVec2f' accessType='inputOnly'
appinfo='Extrusion field'/> |
53 |
<field name='set_orientation' type='MFRotation' accessType='inputOnly'
appinfo='Extrusion field'/> |
54 |
<field name='traceEnabled' type='SFBool' accessType='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 hull' orientation='-0.351 0.926 0.14 0.81' position='10 5 10'/> |
60 | <ProtoInstance name='ExtrusionCrossSection'> |
61 | <fieldValue name='name' value='Torus'/> |
62 | <fieldValue name='crossSection' value='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='spine' value='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='beginCap' value='false'/> |
65 | <fieldValue name='endCap' value='false'/> |
66 | <fieldValue name='creaseAngle' value='1.57'/> |
67 | <fieldValue name='spineColor' value='1 1 1'/> |
68 | <fieldValue name='crossSectionColor' value='0.8 0.8 0'/> |
69 | <fieldValue name='crossSectionTransparency' value='0.1'/> |
70 | <fieldValue name='extrusionColor' value='1 0 1'/> |
71 | <fieldValue name='extrusionTransparency' value='0.8'/> |
72 | <fieldValue name='traceEnabled' value='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 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. |
<!--
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>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->