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='Interactive' 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='CircleLinesSphereLatitude.x3d'/> |
6 | <meta name='description' content='Build a sphere outline by using multiple CircleLine circles as latitude rings, with actual semitransparent Sphere and axes added as a visualization hint.'/> |
7 | <meta name='creator' content='Don Brutzman and Ben Cheng'/> |
8 | <meta name='created' content='12 August 2013'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='drawing' content='CircleLinesSphereCalculations.jpg'/> |
11 | <meta name='reference' content='CircleLinesExample.x3d'/> |
12 | <meta name='reference' content='CircleLinesSphereLongitude.x3d'/> |
13 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/CircleLinesSphereLatitude.x3d'/> |
14 | <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> |
15 | <meta name='license' content='../license.html'/> |
16 | </head> |
17 | <Scene> |
18 | <WorldInfo title='CircleLinesSphereLatitude.x3d'/> |
19 | <Viewpoint description='CircleLines Example' position='0 0 4'/> |
20 | <Shape DEF='OuterHullVisualizationHint'> |
21 | <Sphere radius='0.995'/> |
22 | <Appearance> |
23 | <Material diffuseColor='1 1 1' transparency='0.4'/> |
24 | </Appearance> |
25 | </Shape> |
26 | <!-- CircleLines is an IndexedLineSet made out of 24 line segments --> |
27 |
<!-- Transform
CircleEquator is a DEF node that has 4 USE nodes: USE_1, USE_2, USE_3, USE_4 -->
<Transform DEF='CircleEquator' rotation='1 0 0 1.570796'> |
28 | <Shape DEF='CircleLines'> |
29 | <IndexedLineSet coordIndex='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 -1'> |
30 | <Coordinate point='0.000 1.000 0.0 0.259 0.966 0.0 0.500 0.866 0.0 0.707 0.707 0.0 0.866 0.500 0.0 0.966 0.259 0.0 1.000 0.000 0.0 0.966 -0.259 0.0 0.866 -0.500 0.0 0.707 -0.707 0.0 0.500 -0.866 0.0 0.259 -0.966 0.0 0.000 -1.000 0.0 -0.259 -0.966 0.0 -0.500 -0.866 0.0 -0.707 -0.707 0.0 -0.866 -0.500 0.0 -0.966 -0.259 0.0 -1.000 -0.000 0.0 -0.966 0.259 0.0 -0.866 0.500 0.0 -0.707 0.707 0.0 -0.500 0.866 0.0 -0.259 0.966 0.0 0 1 0 0 -1 0 1 0 0 -1 0 0'/> |
31 | </IndexedLineSet> |
32 |
<!-- Appearance
CircleAppearance is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='CircleAppearance'> |
33 | <Material emissiveColor='1 .5 .2'/> |
34 | </Appearance> |
35 | </Shape> |
36 | </Transform> |
37 |
<!-- Group
CircleLatitudes is a DEF node that has 1 USE node: USE_1 -->
<Group DEF='CircleLatitudes'> |
38 | <Transform scale='0.9682 0.9682 0.9682' translation='0 .25 0'> |
39 | <Transform USE='CircleEquator'/> |
40 | </Transform> |
41 | <Transform scale='0.8660 0.8660 0.8660' translation='0 .5 0'> |
42 | <Transform USE='CircleEquator'/> |
43 | </Transform> |
44 | <Transform scale='0.6614 0.6614 0.6614' translation='0 .75 0'> |
45 | <Transform USE='CircleEquator'/> |
46 | </Transform> |
47 | <Transform scale='0.3122 0.3122 0.3122' translation='0 .95 0'> |
48 | <Transform USE='CircleEquator'/> |
49 | </Transform> |
50 | <Shape DEF='TipTop'> |
51 | <PointSet> |
52 | <Coordinate point='0 1 0'/> |
53 | </PointSet> |
54 | <Appearance USE='CircleAppearance'/> |
55 | </Shape> |
56 | </Group> |
57 | <Transform rotation='1 0 0 3.141593'> |
58 | <Group USE='CircleLatitudes'/> |
59 | </Transform> |
60 | <!-- Authoring hint: these axes are aligned within local coordinate system --> |
61 | <Transform DEF='CoordinateAxesAdjustedScale'> |
62 | <Transform DEF='ScaleFeetToMeters' scale='0.4 0.4 0.4'> |
63 | <Inline DEF='CoordinateAxes' url=' "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" '/> |
64 | </Transform> |
65 | </Transform> |
66 | </Scene> |
67 | </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. -->