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='RoundedRectangleComparison.x3d'/> |
6 | <meta name='description' content='RoundedRectangleComparison shows three RoundedRectangle shapes using polygons/lines/points rendering. Note that reuse of RoundedRectangle geometry requires only Interchange profile, but Text requires Immersive profile.'/> |
7 | <meta name='created' content='8 November 2014'/> |
8 | <meta name='modified' content='20 October 2019'/> |
9 | <meta name='Image' content='RoundedRectangleComparison.png'/> |
10 | <meta name='reference' content='RoundedRectanglePrimitives.x3d'/> |
11 | <meta name='reference' content='RoundedRectangle2D.x3d'/> |
12 | <meta name='reference' content='RoundedRectangleDesign.vsd'/> |
13 | <meta name='reference' content='RoundedRectangleDesign.png'/> |
14 | <meta name='reference' content='RoundedRectangleDesign.svg'/> |
15 | <meta name='creator' content='Don Brutzman'/> |
16 | <meta name='reference' content='https://en.wikipedia.org/wiki/Squircle'/> |
17 | <meta name='reference' content='https://en.wiktionary.org/wiki/roundrect'/> |
18 | <meta name='info' content='Development of this scene added new features to X3D-Edit'/> |
19 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/RoundedRectangleComparison.x3d'/> |
20 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
21 | <meta name='license' content='../license.html'/> |
22 | </head> |
23 | <Scene> |
24 | <WorldInfo title='RoundedRectangleComparison.x3d'/> |
25 | <Background skyColor='0.1 0.1 0.1'/> |
26 | <Viewpoint description='RoundedRectangle Comparison' position='0 0 7'/> |
27 | <Viewpoint description='Polygons RoundedRectangle' position='-2 0 3'/> |
28 | <Viewpoint description='Lines RoundedRectangle' position='0 0 3'/> |
29 | <Viewpoint description='Points RoundedRectangle' position='2 0 3'/> |
30 | <Transform translation='-2 0 0'> |
31 | <Shape DEF='polygonsRoundedRectangle'> |
32 | <!-- RoundedRectangle with 44 perimeter points + 4 internal points on each level --> |
33 | <IndexedFaceSet creaseAngle='6.28' solid='false' coordIndex='0 1 2 3 0 -1 0 14 15 1 0 -1 1 25 26 2 1 -1 2 36 37 3 2 -1 3 47 4 0 3 -1 0 4 5 6 7 8 9 10 11 12 13 14 0 -1 1 15 16 17 18 19 20 21 22 23 24 25 1 -1 2 26 27 28 29 30 31 32 33 34 35 36 2 -1 3 37 38 39 40 41 42 43 44 45 46 47 3 -1 48 49 50 51 48 -1 48 62 63 49 48 -1 49 73 74 50 49 -1 50 84 85 51 50 -1 51 95 52 48 51 -1 48 52 53 54 55 56 57 58 59 60 61 62 48 -1 49 63 64 65 66 67 68 69 70 71 72 73 49 -1 50 74 75 76 77 78 79 80 81 82 83 84 50 -1 51 85 86 87 88 89 90 91 92 93 94 95 51 -1 5 4 52 53 -1 6 5 53 54 -1 7 6 54 55 -1 8 7 55 56 -1 9 8 56 57 -1 10 9 57 58 -1 11 10 58 59 -1 12 11 59 60 -1 13 12 60 61 -1 14 13 61 62 -1 15 14 62 63 -1 16 15 63 64 -1 17 16 64 65 -1 18 17 65 66 -1 19 18 66 67 -1 20 19 67 68 -1 21 20 68 69 -1 22 21 69 70 -1 23 22 70 71 -1 24 23 71 72 -1 25 24 72 73 -1 26 25 73 74 -1 27 26 74 75 -1 28 27 75 76 -1 29 28 76 77 -1 30 29 77 78 -1 31 30 78 79 -1 32 31 79 80 -1 33 32 80 81 -1 34 33 81 82 -1 35 34 82 83 -1 36 35 83 84 -1 37 36 84 85 -1 38 37 85 86 -1 39 38 86 87 -1 40 39 87 88 -1 41 40 88 89 -1 42 41 89 90 -1 43 42 90 91 -1 44 43 91 92 -1 45 44 92 93 -1 46 45 93 94 -1 47 46 94 95 -1 47 95 52 4 -1'> |
34 |
<!-- Coordinate
PointArray2x1x0.2 is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <Coordinate DEF='PointArray2x1x0.2' point='0.450 0.900 0.100 0.450 -0.900 0.100 -0.450 -0.900 0.100 -0.450 0.900 0.100 0.450 1.000 0.100 0.466 0.999 0.100 0.481 0.995 0.100 0.495 0.989 0.100 0.509 0.981 0.100 0.521 0.971 0.100 0.531 0.959 0.100 0.539 0.945 0.100 0.545 0.931 0.100 0.549 0.916 0.100 0.550 0.900 0.100 0.550 -0.900 0.100 0.549 -0.916 0.100 0.545 -0.931 0.100 0.539 -0.945 0.100 0.531 -0.959 0.100 0.521 -0.971 0.100 0.509 -0.981 0.100 0.495 -0.989 0.100 0.481 -0.995 0.100 0.466 -0.999 0.100 0.450 -1.000 0.100 -0.450 -1.000 0.100 -0.466 -0.999 0.100 -0.481 -0.995 0.100 -0.495 -0.989 0.100 -0.509 -0.981 0.100 -0.521 -0.971 0.100 -0.531 -0.959 0.100 -0.539 -0.945 0.100 -0.545 -0.931 0.100 -0.549 -0.916 0.100 -0.550 -0.900 0.100 -0.550 0.900 0.100 -0.549 0.916 0.100 -0.545 0.931 0.100 -0.539 0.945 0.100 -0.531 0.959 0.100 -0.521 0.971 0.100 -0.509 0.981 0.100 -0.495 0.989 0.100 -0.481 0.995 0.100 -0.466 0.999 0.100 -0.450 1.000 0.100 0.450 0.900 -0.100 0.450 -0.900 -0.100 -0.450 -0.900 -0.100 -0.450 0.900 -0.100 0.450 1.000 -0.100 0.466 0.999 -0.100 0.481 0.995 -0.100 0.495 0.989 -0.100 0.509 0.981 -0.100 0.521 0.971 -0.100 0.531 0.959 -0.100 0.539 0.945 -0.100 0.545 0.931 -0.100 0.549 0.916 -0.100 0.550 0.900 -0.100 0.550 -0.900 -0.100 0.549 -0.916 -0.100 0.545 -0.931 -0.100 0.539 -0.945 -0.100 0.531 -0.959 -0.100 0.521 -0.971 -0.100 0.509 -0.981 -0.100 0.495 -0.989 -0.100 0.481 -0.995 -0.100 0.466 -0.999 -0.100 0.450 -1.000 -0.100 -0.450 -1.000 -0.100 -0.466 -0.999 -0.100 -0.481 -0.995 -0.100 -0.495 -0.989 -0.100 -0.509 -0.981 -0.100 -0.521 -0.971 -0.100 -0.531 -0.959 -0.100 -0.539 -0.945 -0.100 -0.545 -0.931 -0.100 -0.549 -0.916 -0.100 -0.550 -0.900 -0.100 -0.550 0.900 -0.100 -0.549 0.916 -0.100 -0.545 0.931 -0.100 -0.539 0.945 -0.100 -0.531 0.959 -0.100 -0.521 0.971 -0.100 -0.509 0.981 -0.100 -0.495 0.989 -0.100 -0.481 0.995 -0.100 -0.466 0.999 -0.100 -0.450 1.000 -0.100'/> |
35 | </IndexedFaceSet> |
36 | <Appearance> |
37 | <!-- Polygon color is primarily defined by diffuseColor --> |
38 |
<!-- Material
PeriwinkleDiffuse is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 --> <Material DEF='PeriwinkleDiffuse' diffuseColor='0.8 0.8 1.0'/> |
39 | </Appearance> |
40 | </Shape> |
41 | <Transform translation='0 -1.5 0'> |
42 | <Shape> |
43 | <Text string='"Polygons"'> |
44 |
<!-- FontStyle
SmallCenteredFont is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <FontStyle DEF='SmallCenteredFont' family='"SANS"' justify='"MIDDLE" "MIDDLE"' size='0.2' style='BOLD'/> |
45 | </Text> |
46 | <Appearance> |
47 | <Material USE='PeriwinkleDiffuse'/> |
48 | </Appearance> |
49 | </Shape> |
50 | </Transform> |
51 | </Transform> |
52 | <Shape DEF='linesRoundedRectangle'> |
53 | <IndexedLineSet coordIndex='0 1 2 3 0 -1 0 14 15 1 0 -1 1 25 26 2 1 -1 2 36 37 3 2 -1 3 47 4 0 3 -1 0 4 5 6 7 8 9 10 11 12 13 14 0 -1 1 15 16 17 18 19 20 21 22 23 24 25 1 -1 2 26 27 28 29 30 31 32 33 34 35 36 2 -1 3 37 38 39 40 41 42 43 44 45 46 47 3 -1 48 49 50 51 48 -1 48 62 63 49 48 -1 49 73 74 50 49 -1 50 84 85 51 50 -1 51 95 52 48 51 -1 48 52 53 54 55 56 57 58 59 60 61 62 48 -1 49 63 64 65 66 67 68 69 70 71 72 73 49 -1 50 74 75 76 77 78 79 80 81 82 83 84 50 -1 51 85 86 87 88 89 90 91 92 93 94 95 51 -1 5 4 52 53 -1 6 5 53 54 -1 7 6 54 55 -1 8 7 55 56 -1 9 8 56 57 -1 10 9 57 58 -1 11 10 58 59 -1 12 11 59 60 -1 13 12 60 61 -1 14 13 61 62 -1 15 14 62 63 -1 16 15 63 64 -1 17 16 64 65 -1 18 17 65 66 -1 19 18 66 67 -1 20 19 67 68 -1 21 20 68 69 -1 22 21 69 70 -1 23 22 70 71 -1 24 23 71 72 -1 25 24 72 73 -1 26 25 73 74 -1 27 26 74 75 -1 28 27 75 76 -1 29 28 76 77 -1 30 29 77 78 -1 31 30 78 79 -1 32 31 79 80 -1 33 32 80 81 -1 34 33 81 82 -1 35 34 82 83 -1 36 35 83 84 -1 37 36 84 85 -1 38 37 85 86 -1 39 38 86 87 -1 40 39 87 88 -1 41 40 88 89 -1 42 41 89 90 -1 43 42 90 91 -1 44 43 91 92 -1 45 44 92 93 -1 46 45 93 94 -1 47 46 94 95 -1 47 95 52 4 -1'> |
54 | <Coordinate USE='PointArray2x1x0.2'/> |
55 | </IndexedLineSet> |
56 | <Appearance> |
57 | <!-- Line color is only! defined by emissiveColor --> |
58 |
<!-- Material
PeriwinkleEmissive is a DEF node that has 1 USE node: USE_1 --> <Material DEF='PeriwinkleEmissive' emissiveColor='0.8 0.8 1.0'/> |
59 | </Appearance> |
60 | </Shape> |
61 | <Transform translation='0 -1.5 0'> |
62 | <Shape> |
63 | <Text string='"Lines"'> |
64 | <FontStyle USE='SmallCenteredFont'/> |
65 | </Text> |
66 | <Appearance> |
67 | <Material USE='PeriwinkleDiffuse'/> |
68 | </Appearance> |
69 | </Shape> |
70 | </Transform> |
71 | <Transform translation='2 0 0'> |
72 | <Shape DEF='pointsRoundedRectangle'> |
73 | <PointSet> |
74 | <Coordinate USE='PointArray2x1x0.2'/> |
75 | </PointSet> |
76 | <Appearance> |
77 | <!-- Point color is only! defined by emissiveColor --> |
78 | <Material USE='PeriwinkleEmissive'/> |
79 | </Appearance> |
80 | </Shape> |
81 | <Transform translation='0 -1.5 0'> |
82 | <Shape> |
83 | <Text string='"Points"'> |
84 | <FontStyle USE='SmallCenteredFont'/> |
85 | </Text> |
86 | <Appearance> |
87 | <Material USE='PeriwinkleDiffuse'/> |
88 | </Appearance> |
89 | </Shape> |
90 | </Transform> |
91 | </Transform> |
92 | </Scene> |
93 | </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. -->