X3D Model Documentation: CircleLinesSphereLongitude.x3d

  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='titlecontent='CircleLinesSphereLongitude.x3d'/>
  6            <meta name='descriptioncontent='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='creatorcontent='John Kelly'/>
  8            <meta name='createdcontent='21 August 2013'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='referencecontent='CircleLinesExample.x3d'/>
 11            <meta name='referencecontent='CircleLinesSphereLatitude.x3d'/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/CircleLinesSphereLongitude.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../license.html'/>
 15       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: CircleAppearance, CircleLine, CoordinateAxes, CoordinateAxesAdjustedScale, OuterHullVisualizationHint, PrimeMeridian, ScaleFeetToMeters

Index for Viewpoint node: Viewpoint_1
-->
 16       <Scene>
 17            <WorldInfo title='CircleLinesSphereLongitude.x3d'/>
 18            <Viewpoint description='LongitudeLines Exampleposition='0 0 4'/>
 19            <Shape DEF='OuterHullVisualizationHint'>
 20                 <Sphere radius='0.995'/>
 21                 <Appearance>
 22                      <Material diffuseColor='1 1 1transparency='0.4'/>
 23                 </Appearance>
 24            </Shape>
 25            <!-- CircleLines is an IndexedLineSet made out of 24 line segments -->
 26            <Transform DEF='PrimeMeridianrotation='1 0 0 0'>
 27 
               <!-- Shape CircleLine is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5 -->
               <Shape DEF='CircleLine'>
 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='ScaleFeetToMetersscale='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>
<!--

<!-- -->

<!-- to top Index for DEF nodes: CircleAppearance, CircleLine, CoordinateAxes, CoordinateAxesAdjustedScale, OuterHullVisualizationHint, PrimeMeridian, ScaleFeetToMeters

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Coordinate, head, IndexedLineSet, Inline, Material, meta, Scene, Shape, Sphere, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/CircleLinesSphereLongitudeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/CircleLinesSphereLongitude.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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->