X3D Model Documentation: CircleLinesSphereLatitude.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='CircleLinesSphereLatitude.x3d'/>
  6            <meta name='descriptioncontent='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='creatorcontent='Don Brutzman and Ben Cheng'/>
  8            <meta name='createdcontent='12 August 2013'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='drawingcontent='CircleLinesSphereCalculations.jpg'/>
 11            <meta name='referencecontent='CircleLinesExample.x3d'/>
 12            <meta name='referencecontent='CircleLinesSphereLongitude.x3d'/>
 13            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/CircleLinesSphereLatitude.x3d'/>
 14            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 15            <meta name='licensecontent='../license.html'/>
 16       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: CircleAppearance, CircleEquator, CircleLatitudes, CircleLines, CoordinateAxes, CoordinateAxesAdjustedScale, OuterHullVisualizationHint, ScaleFeetToMeters, TipTop

Index for Viewpoint node: Viewpoint_1
-->
 17       <Scene>
 18            <WorldInfo title='CircleLinesSphereLatitude.x3d'/>
 19            <Viewpoint description='CircleLines Exampleposition='0 0 4'/>
 20            <Shape DEF='OuterHullVisualizationHint'>
 21                 <Sphere radius='0.995'/>
 22                 <Appearance>
 23                      <Material diffuseColor='1 1 1transparency='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='CircleEquatorrotation='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.9682translation='0 .25 0'>
 39                      <Transform USE='CircleEquator'/>
 40                 </Transform>
 41                 <Transform scale='0.8660 0.8660 0.8660translation='0 .5 0'>
 42                      <Transform USE='CircleEquator'/>
 43                 </Transform>
 44                 <Transform scale='0.6614 0.6614 0.6614translation='0 .75 0'>
 45                      <Transform USE='CircleEquator'/>
 46                 </Transform>
 47                 <Transform scale='0.3122 0.3122 0.3122translation='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='ScaleFeetToMetersscale='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>
<!--

<!-- -->

<!-- to top Index for DEF nodes: CircleAppearance, CircleEquator, CircleLatitudes, CircleLines, CoordinateAxes, CoordinateAxesAdjustedScale, OuterHullVisualizationHint, ScaleFeetToMeters, TipTop

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Coordinate, Group, head, IndexedLineSet, Inline, Material, meta, PointSet, 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/CircleLinesSphereLatitudeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/CircleLinesSphereLatitude.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. -->