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='ExtrusionPentagon.x3d'/> |
6 | <meta name='description' content='Simple regular pentagon extruded vertically, shown side-by-side with an ExtrusionCrossSection visualization.'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='contributor' content='U.S. Naval Postgraduate School (NPS)'/> |
9 | <meta name='created' content='3 September 2005'/> |
10 | <meta name='modified' content='20 January 2024'/> |
11 | <meta name='subject' content='Extrusion pentagon'/> |
12 | <meta name='reference' content='https://en.wikipedia.org/wiki/Extrusion'/> |
13 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ExtrusionPentagon.x3d'/> |
14 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
15 | <meta name='license' content='../license.html'/> |
16 | </head> |
17 | <Scene> |
18 | <WorldInfo title='ExtrusionPentagon.x3d'/> |
19 | <NavigationInfo DEF='ExamineMode'/> |
20 | <NavigationInfo DEF='FlyPanNavigation' type='"FLY" "ANY"'/> |
21 | <Background skyColor='1 1 1'/> |
22 | <Viewpoint description='Extrusion Pentagon' orientation='-1 0 0 0.2' position='0 3.17 12.85'/> |
23 | <Viewpoint description='Oblique view from above' orientation='-1 0.015 -0.006 0.78' position='0.25 8.98 8.99'/> |
24 | <Viewpoint description='Overhead view' orientation='1 0 0 -1.57' position='0 13.15 0'/> |
25 | <Background groundColor='0.9 0.9 0.9' skyColor='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 -1' scale='1 1 1 1 0.2 0.2' spine='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='ExtrusionCrossSection' appinfo='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='name' type='SFString' accessType='initializeOnly'
appinfo='Extrusion name'/> |
43 |
<field name='crossSection' type='MFVec2f' accessType='initializeOnly'
appinfo='Extrusion field'/> |
44 |
<field name='spine' type='MFVec3f' accessType='initializeOnly'
appinfo='Extrusion field'/> |
45 |
<field name='scale' type='MFVec2f' accessType='initializeOnly'
appinfo='Extrusion field'/> |
46 |
<field name='orientation' type='MFRotation' accessType='initializeOnly'
appinfo='Extrusion field'/> |
47 |
<field name='beginCap' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
48 |
<field name='endCap' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
49 |
<field name='ccw' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
50 |
<field name='convex' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
51 |
<field name='creaseAngle' type='SFFloat' accessType='initializeOnly'
appinfo='Extrusion field'/> |
52 |
<field name='solid' type='SFBool' accessType='initializeOnly'
appinfo='Extrusion field'/> |
53 |
<field name='extrusionImageTexture' type='SFNode' accessType='initializeOnly'
appinfo='Image to apply to Extrusion'/> |
54 |
<field name='extrusionTextureTransform' type='SFNode' accessType='initializeOnly'
appinfo='TextureTransform coordinates of image applied to Extrusion'/> |
55 |
<field name='set_crossSection' type='MFVec2f' accessType='inputOnly'
appinfo='Extrusion field'/> |
56 |
<field name='set_spine' type='MFVec3f' accessType='inputOnly'
appinfo='Extrusion field'/> |
57 |
<field name='set_scale' type='MFVec2f' accessType='inputOnly'
appinfo='Extrusion field'/> |
58 |
<field name='set_orientation' type='MFRotation' accessType='inputOnly'
appinfo='Extrusion field'/> |
59 |
<field name='traceEnabled' type='SFBool' accessType='initializeOnly'
appinfo='Whether to provide initialization trace statements showing node construction'/> |
60 |
<field name='spineColor' type='SFColor' accessType='inputOutput'
appinfo='emissiveColor of spine'/> |
61 |
<field name='crossSectionColor' type='SFColor' accessType='inputOutput'
appinfo='diffuseColor of crossSection'/> |
62 |
<field name='crossSectionTransparency' type='SFFloat' accessType='inputOutput'
appinfo='transparency of crossSection'/> |
63 |
<field name='extrusionColor' type='SFColor' accessType='inputOutput'
appinfo='diffuseColor of extrusion hull'/> |
64 |
<field name='extrusionTransparency' type='SFFloat' accessType='inputOutput'
appinfo='transparency of extrusion hull'/> |
65 | </ExternProtoDeclare> |
66 | <Transform translation='4 0 0'> |
67 | <ProtoInstance name='ExtrusionCrossSection' DEF='PentagonExtrusion'> |
68 | <fieldValue name='name' value='PentagonExtrusion'/> |
69 | <fieldValue name='crossSection' value='-3.5 -1 -2.1 2.9 2.2 2.9 3.6 -1 0 -3.5 -3.5 -1'/> |
70 | <fieldValue name='spine' value='0 0 0 0 1 0 0 1.6 0'/> |
71 | <fieldValue name='scale' value='1 1 1 1 0.2 0.2'/> |
72 | <fieldValue name='ccw' value='true'/> |
73 | <fieldValue name='spineColor' value='0.7 0.7 0'/> |
74 | <fieldValue name='crossSectionColor' value='0.6 0.6 0.2'/> |
75 | <fieldValue name='extrusionColor' value='0.3 0.6 0.6'/> |
76 | <fieldValue name='extrusionTransparency' value='0.6'/> |
77 | <fieldValue name='traceEnabled' value='false'/> |
78 | </ProtoInstance> |
79 | </Transform> |
80 | </Scene> |
81 | </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.
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. |
<!--
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. -->