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='CircleLinesSphereLongitude.x3d'/> |
6 | <meta name='description' content='Build a sphere outline by using multiple CircleLine circles as longitude rings, with actual semitransparent Sphere and axes added as a visualization hint.'/> |
7 | <meta name='creator' content='John Kelly'/> |
8 | <meta name='created' content='21 August 2013'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='reference' content='CircleLinesExample.x3d'/> |
11 | <meta name='reference' content='CircleLinesSphereLatitude.x3d'/> |
12 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/CircleLinesSphereLongitude.x3d'/> |
13 | <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> |
14 | <meta name='license' content='../license.html'/> |
15 | </head> |
16 | <Scene> |
17 | <WorldInfo title='CircleLinesSphereLongitude.x3d'/> |
18 | <Viewpoint description='LongitudeLines Example' position='0 0 4'/> |
19 | <Shape DEF='OuterHullVisualizationHint'> |
20 | <Sphere radius='0.995'/> |
21 | <Appearance> |
22 | <Material diffuseColor='1 1 1' transparency='0.4'/> |
23 | </Appearance> |
24 | </Shape> |
25 | <!-- CircleLines is an IndexedLineSet made out of 24 line segments --> |
26 | <Transform DEF='PrimeMeridian' rotation='1 0 0 0'> |
27 | |
28 | <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'> |
29 | <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'/> |
30 | </IndexedLineSet> |
31 | <Appearance DEF='CircleAppearance'> |
32 | <Material emissiveColor='1 .5 .2'/> |
33 | </Appearance> |
34 | </Shape> |
35 | </Transform> |
36 | <!-- Each transform below rotates the 'CircleLine' by 30 degrees --> |
37 | <Transform rotation='0 1 0 0.523599'> |
38 | <!-- 30 degrees --> |
39 | <Shape USE='CircleLine'/> |
40 | </Transform> |
41 | <Transform rotation='0 1 0 1.047198'> |
42 | <!-- 60 degrees --> |
43 | <Shape USE='CircleLine'/> |
44 | </Transform> |
45 | <Transform rotation='0 1 0 1.570796'> |
46 | <!-- 90 degrees --> |
47 | <Shape USE='CircleLine'/> |
48 | </Transform> |
49 | <Transform rotation='0 1 0 2.094395'> |
50 | <!-- 120 degrees --> |
51 | <Shape USE='CircleLine'/> |
52 | </Transform> |
53 | <Transform rotation='0 1 0 2.617994'> |
54 | <!-- 150 degrees --> |
55 | <Shape USE='CircleLine'/> |
56 | </Transform> |
57 | <!-- Authoring hint: these axes are aligned within local coordinate system --> |
58 | <Transform DEF='CoordinateAxesAdjustedScale'> |
59 | <Transform DEF='ScaleFeetToMeters' scale='0.4 0.4 0.4'> |
60 | <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" '/> |
61 | </Transform> |
62 | </Transform> |
63 | </Scene> |
64 | </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. -->