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='ElevationGridNonPlanarQuadrilaterals.x3d'/> |
6 | <meta name='description' content='Show how a single nonplanar quadrilateral can be tesselated in 2 different ways.'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='contributor' content='U.S. Naval Postgraduate School (NPS)'/> |
9 | <meta name='created' content='28 August 2005'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ElevationGridNonPlanarQuadrilaterals.x3d'/> |
12 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
13 | <meta name='license' content='../license.html'/> |
14 | </head> |
15 | <Scene> |
16 | <WorldInfo title='ElevationGridNonPlanarQuadrilaterals.x3d'/> |
17 | <NavigationInfo DEF='ExamineMode'/> |
18 |
<!-- ROUTE information for FlyPanNavigation node:
[from DefaultView.isBound to set_bind
]
-->
<NavigationInfo DEF='FlyPanNavigation' type='"FLY" "ANY"'/> |
19 | <Background skyColor='1 1 1'/> |
20 | <Viewpoint description='Book View' orientation='0 1 0 0.01' position='0.13 0.2 7.71'/> |
21 |
<!-- ROUTE information for DefaultView node:
[from isBound to FlyPanNavigation.set_bind
]
-->
<Viewpoint DEF='DefaultView' description='ElevationGrid tessellation examples' position='0 0.2 10'/> |
22 | < ROUTE fromNode='DefaultView' fromField='isBound' toNode='FlyPanNavigation' toField='set_bind'/> |
23 | <Transform translation='0 -0.75 0'> |
24 | <Transform DEF='FigureElevationGridBack' translation='-4 0 0'> |
25 | <!-- Note that the base of each piece of polygonal geometry is based at (1 0 1) --> |
26 | <Viewpoint description='Default brower ElevationGrid tessellation, front view' position='1.5 0.4 4'/> |
27 | <Transform center='1 0 1' rotation='0 1 0 3.2'> |
28 |
<!-- Group
DefaultElevationGrid is a DEF node that has 1 USE node: USE_1 -->
<Group DEF='DefaultElevationGrid'> |
29 | <Shape DEF='ExampleElevationGridShape'> |
30 | <ElevationGrid solid='false' height='0 0.5 0 0'/> |
31 |
<!-- Appearance
DiffuseRedAppearance is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
<Appearance DEF='DiffuseRedAppearance'> |
32 | <Material diffuseColor='0.9 0.1 0.1' transparency='0.1'/> |
33 | </Appearance> |
34 | </Shape> |
35 | <Transform DEF='FigureLabelBrowserElevationGrid' translation='0.5 1 0.5'> |
36 | <Billboard> |
37 | <Shape> |
38 | <Text string='"Browser" "ElevationGrid"'> |
39 | |
40 | </Text> |
41 | |
42 | <Material diffuseColor='0.2 0.1 0.8'/> |
43 | </Appearance> |
44 | </Shape> |
45 | </Billboard> |
46 | </Transform> |
47 |
<!-- Group
CommonFigureElements is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
<Group DEF='CommonFigureElements'> |
48 | <Shape DEF='QuadOutlineShape'> |
49 | <IndexedLineSet colorPerVertex='false' colorIndex='0 0 0 0' coordIndex='0 1 3 2 0 -1'> |
50 | <!-- first iterate on x-axis, then z-xis --> |
51 | |
52 | |
53 | </IndexedLineSet> |
54 | </Shape> |
55 | <Shape DEF='FloorShape'> |
56 | <!-- setting all height values to zero is a simple way to get a square outline. A more efficient way is to use an IndexedFaceSet. --> |
57 | <ElevationGrid solid='false'/> |
58 | <Appearance DEF='TransparentGreyAppearance'> |
59 | <Material diffuseColor='0 0 0' transparency='0.8'/> |
60 | </Appearance> |
61 | </Shape> |
62 | <Transform DEF='PointLabels' translation='0 -0.2 0'> |
63 | <Billboard> |
64 | <Shape> |
65 | <Text string='"h0"'> |
66 | <FontStyle USE='CenterFS'/> |
67 | </Text> |
68 | <Appearance USE='LabelAppearance'/> |
69 | </Shape> |
70 | </Billboard> |
71 | <Transform translation='1 0 0'> |
72 | <Billboard> |
73 | <Shape> |
74 | <Text string='"h1"'> |
75 | <FontStyle USE='CenterFS'/> |
76 | </Text> |
77 | <Appearance USE='LabelAppearance'/> |
78 | </Shape> |
79 | </Billboard> |
80 | </Transform> |
81 | <Transform translation='0 0 1'> |
82 | <Billboard> |
83 | <Shape> |
84 | <Text string='"h2"'> |
85 | <FontStyle USE='CenterFS'/> |
86 | </Text> |
87 | <Appearance USE='LabelAppearance'/> |
88 | </Shape> |
89 | </Billboard> |
90 | </Transform> |
91 | <Transform translation='1 0 1'> |
92 | <Billboard> |
93 | <Shape> |
94 | <Text string='"h3"'> |
95 | <FontStyle USE='CenterFS'/> |
96 | </Text> |
97 | <Appearance USE='LabelAppearance'/> |
98 | </Shape> |
99 | </Billboard> |
100 | </Transform> |
101 | </Transform> |
102 | <Shape DEF='QuadVerticalLineShape'> |
103 | <IndexedLineSet colorPerVertex='false' colorIndex='0 0 0 0' coordIndex='1 4 -1'> |
104 | <Coordinate USE='QuadrilateralPoints'/> |
105 | <Color USE='White'/> |
106 | </IndexedLineSet> |
107 | </Shape> |
108 | </Group> |
109 |
<!-- Shape
QuadCrossDiagonalLineShape is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='QuadCrossDiagonalLineShape'> |
110 | <IndexedLineSet colorPerVertex='false' colorIndex='0 0 0 0' coordIndex='2 1 -1'> |
111 | <Coordinate USE='QuadrilateralPoints'/> |
112 | <Color USE='White'/> |
113 | </IndexedLineSet> |
114 | </Shape> |
115 |
<!-- Shape
QuadCenterDiagonalLineShape is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='QuadCenterDiagonalLineShape'> |
116 | <IndexedLineSet colorPerVertex='false' colorIndex='0 0 0 0' coordIndex='0 3 -1'> |
117 | <Coordinate USE='QuadrilateralPoints'/> |
118 | <Color USE='White'/> |
119 | </IndexedLineSet> |
120 | </Shape> |
121 | </Group> |
122 | </Transform> |
123 | </Transform> |
124 | <Transform DEF='FigureElevationGridFront' translation='-1 0 0'> |
125 | <Viewpoint description='Default brower ElevationGrid tessellation, back view' position='0.5 0.4 4'/> |
126 | <Transform center='1 0 1' rotation='0 1 0 0.8'> |
127 | <Group USE='DefaultElevationGrid'/> |
128 | </Transform> |
129 | </Transform> |
130 | <Transform DEF='FigureIfsCenterDiagonal' translation='1 0 0'> |
131 | <Viewpoint description='Center-diagonal tessellation' position='0.5 0.4 4'/> |
132 | <Transform center='1 0 1' rotation='0 1 0 0.4'> |
133 | <Shape> |
134 | <IndexedFaceSet coordIndex='0 3 1 -1 0 2 3 -1'> |
135 | <Coordinate USE='QuadrilateralPoints'/> |
136 | </IndexedFaceSet> |
137 | <Appearance USE='DiffuseRedAppearance'/> |
138 | </Shape> |
139 | <Transform DEF='FigureLabelCenterDiagonalTessellation' translation='0.5 1 0.5'> |
140 | <Billboard> |
141 | <Shape> |
142 | <Text string='"Center Diagonal" "Tessellation"'> |
143 | <FontStyle USE='CenterFS'/> |
144 | </Text> |
145 | <Appearance USE='LabelAppearance'/> |
146 | </Shape> |
147 | </Billboard> |
148 | </Transform> |
149 | <Group USE='CommonFigureElements'/> |
150 | <Shape USE='QuadCenterDiagonalLineShape'/> |
151 | </Transform> |
152 | </Transform> |
153 | <Transform DEF='FigureIfsCrossDiagonal' translation='3 0 0'> |
154 | <Viewpoint description='Cross-diagonal tessellation' position='0.5 0.4 4'/> |
155 | <Transform center='1 0 1'> |
156 | <Shape> |
157 | <IndexedFaceSet coordIndex='0 2 1 -1 2 3 1 -1'> |
158 | <Coordinate USE='QuadrilateralPoints'/> |
159 | </IndexedFaceSet> |
160 | <Appearance USE='DiffuseRedAppearance'/> |
161 | </Shape> |
162 | <Transform DEF='FigureLabelCrossDiagonalTessellation' translation='0.5 1 0.5'> |
163 | <Billboard> |
164 | <Shape> |
165 | <Text string='"Cross Diagonal" "Tessellation"'> |
166 | <FontStyle USE='CenterFS'/> |
167 | </Text> |
168 | <Appearance USE='LabelAppearance'/> |
169 | </Shape> |
170 | </Billboard> |
171 | </Transform> |
172 | <Group USE='CommonFigureElements'/> |
173 | <Shape USE='QuadCrossDiagonalLineShape'/> |
174 | </Transform> |
175 | </Transform> |
176 | </Transform> |
177 | </Scene> |
178 | </X3D> |
Event Graph ROUTE Table with 1 ROUTE connection 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.
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->