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='RoundedRectanglePrimitives.x3d'/> |
6 | <meta name='description' content='Illustrates how to build rounded rectangle using only primitive nodes.'/> |
7 | <meta name='creator' content='Marlon Heron and Don Brutzman'/> |
8 | <meta name='created' content='23 October 2014'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='reference' content='X3D for Web Authors, homework for chapters 2 and 3.'/> |
11 | <meta name='reference' content='https://x3dgraphics.com/slidesets/X3dForWebAuthors/Chapter02-GeometryPrimitives.pdf'/> |
12 | <meta name='reference' content='https://x3dgraphics.com/slidesets/X3dForWebAuthors/Chapter03Grouping.pdf'/> |
13 | <meta name=' TODO ' content=' add drawing of scene graph structure '/> |
14 | <meta name=' TODO ' content=' fix Xj3D aliasing bug '/> |
15 | <meta name='Image' content='Xj3dAliasingProblemRoundedRectanglePrimitives.png'/> |
16 | <meta name='subject' content='Rounded Rectangle Primitive Geometry'/> |
17 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/RoundedRectanglePrimitives.x3d'/> |
18 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
19 | <meta name='license' content='../license.html'/> |
20 | </head> |
21 | <Scene> |
22 | <WorldInfo title='RoundedRectanglePrimitives.x3d'/> |
23 | <Viewpoint description='Top Down View' orientation='1 0 0 -1.570796' position='0 20 0'/> |
24 | <Background skyColor='0.941176 1 0.988235'/> |
25 | <Transform> |
26 | <Shape DEF='DefaultShape'> |
27 | <Box size='8 2.01 10'/> |
28 | <Appearance> |
29 | <Material diffuseColor='1 0.2 0.2'/> |
30 | </Appearance> |
31 | </Shape> |
32 | </Transform> |
33 | <Transform> |
34 | <Shape> |
35 | <Box size='10 2.02 8'/> |
36 | <Appearance> |
37 | <Material diffuseColor='1 .5 0'/> |
38 | </Appearance> |
39 | </Shape> |
40 | </Transform> |
41 | <Transform translation='4 0 4'> |
42 | <Shape> |
43 |
<!-- Cylinder
DefaultCylinder is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 --> <Cylinder DEF='DefaultCylinder'/> |
44 | <Appearance> |
45 | <Material diffuseColor='0.2 0.2 1'/> |
46 | </Appearance> |
47 | </Shape> |
48 | </Transform> |
49 | <Transform translation='4 0 -4'> |
50 | <Shape> |
51 | <Cylinder USE='DefaultCylinder'/> |
52 | <Appearance> |
53 | <Material diffuseColor='1 1 0.2'/> |
54 | </Appearance> |
55 | </Shape> |
56 | </Transform> |
57 | <Transform translation='-4 0 4'> |
58 | <Shape> |
59 | <Cylinder USE='DefaultCylinder'/> |
60 | <Appearance> |
61 | <Material diffuseColor='.5 1 0.2'/> |
62 | </Appearance> |
63 | </Shape> |
64 | </Transform> |
65 | <Transform translation='-4 0 -4'> |
66 | <Shape> |
67 | <Cylinder USE='DefaultCylinder'/> |
68 | <Appearance> |
69 | <Material diffuseColor='1 1 0.2'/> |
70 | </Appearance> |
71 | </Shape> |
72 | </Transform> |
73 | </Scene> |
74 | </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. -->