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='Interchange' 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='Arches.x3d'/> |
6 | <meta name='description' content='Transform group example: gazebo made of arches. This example illustrates the use of Transform grouping nodes and their translation, rotation, and scale features.'/> |
7 | <meta name='creator' content='David R. Nadeau'/> |
8 | <meta name='translator' content='Don Brutzman'/> |
9 | <meta name='created' content='1 July 1998'/> |
10 | <meta name='translated' content='2 February 2014'/> |
11 | <meta name='modified' content='20 October 2019'/> |
12 | <meta name='reference' content='originals/arches.wrl'/> |
13 | <meta name='reference' content='http://www.siggraph.org/s98'/> |
14 | <meta name='reference' content='http://www.siggraph.org/s98/conference/courses/18.html'/> |
15 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0069.htm'/> |
16 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/> |
17 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
18 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Arches.x3d'/> |
19 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
20 | <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> |
21 | <meta name='license' content='../license.html'/> |
22 | </head> |
23 | <Scene> |
24 | <!-- First, an Arch is created in a group. The Arch includes of left and right columns, each positioned using a Transform group and its translation field. --> |
25 | <!-- Next, each Arch group includes a horizontal box spanning the two columns. The box is translated up to the top of the columns using a Transform group node. --> |
26 | <!-- The angled top of each Arch is created using two boxes, each rotated about the Z axis to tilt them. A translation then positions the tilted boxes at the top of the archway. --> |
27 | <!-- Next, the entire Arch group is instanced multiple times, rotating each instance to create a circle of archs forming a gazeebo-like structure. --> |
28 | <!-- Finally a base for the structure is added. --> |
29 | <WorldInfo title='Arches.x3d'/> |
30 | |
31 | <Transform translation='-2.0 -1.0 0.0'> |
32 | |
33 | |
34 | <Material/> |
35 | </Appearance> |
36 | <Cylinder bottom='false' height='6.0' radius='0.3' top='false'/> |
37 | </Shape> |
38 | </Transform> |
39 | <Transform translation='2.0 -1.0 0.0'> |
40 | <Shape USE='Column'/> |
41 | </Transform> |
42 | <Transform translation='0.0 2.05 0.0'> |
43 | <Shape> |
44 | <Appearance USE='White'/> |
45 | <Box size='4.6 0.4 0.6'/> |
46 | </Shape> |
47 | </Transform> |
48 | <Transform rotation='0.0 0.0 1.0 0.524' translation='-1.15 3.12 0.0'> |
49 | |
50 | <Appearance USE='White'/> |
51 | <Box size='2.86 0.4 0.6'/> |
52 | </Shape> |
53 | </Transform> |
54 | <Transform rotation='0.0 0.0 1.0 -0.524' translation='1.15 3.12 0.0'> |
55 | <Shape USE='Roof'/> |
56 | </Transform> |
57 | </Transform> |
58 | <Transform rotation='0.0 1.0 0.0 0.785'> |
59 | <Transform USE='Arch'/> |
60 | </Transform> |
61 | <Transform rotation='0.0 1.0 0.0 -0.785'> |
62 | <Transform USE='Arch'/> |
63 | </Transform> |
64 | <Transform rotation='0.0 1.0 0.0 1.571'> |
65 | <Transform USE='Arch'/> |
66 | </Transform> |
67 | <Transform translation='0.0 -4.125 0.0'> |
68 | <Shape> |
69 | <Appearance USE='White'/> |
70 | <Cylinder bottom='false' height='0.25' radius='3.0'/> |
71 | </Shape> |
72 | </Transform> |
73 | <Transform translation='0.0 -4.375 0.0'> |
74 | <Shape> |
75 | <Appearance USE='White'/> |
76 | <Cylinder height='0.25' radius='4.0'/> |
77 | </Shape> |
78 | </Transform> |
79 | </Scene> |
80 | </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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->