X3D Model Documentation: TriangleWithNumbers.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='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='titlecontent='TriangleWithNumbers.x3d'/>
  6            <meta name='descriptioncontent='Simple Triangle with labeled points, where labels always face the user and stay in place with the triangle.'/>
  7            <meta name='creatorcontent='Chad R. Hutchins, Michele Foti and Don Brutzman'/>
  8            <meta name='createdcontent='31 January 2012'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='Imagecontent='TriangleWithNumbers.png'/>
 11            <meta name=' TODO content=' Can we build a prototype that automates generation of this type of model from any IFS or ILS? '/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/TriangleWithNumbers.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../license.html'/>
 15       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: LABEL_APPEARANCE, LABEL_FONT, PolygonGroup0, TransparentAppearance, TransparentBox, TriangleCoordinatePoints, VertexGroup0, VertexGroup1, VertexGroup2

Index for Viewpoint node: Viewpoint_1
-->
 16       <Scene>
 17            <WorldInfo title='TriangleWithNumbers.x3d'/>
 18            <Background skyColor='0.3 0.3 0.45'/>
 19            <Viewpoint description='Triangle annotated with coordinate indicesposition='0 0 4'/>
 20            <Transform DEF='PolygonGroup0'>
 21                 <TouchSensor description='Polygon 0'/>
 22                 <Shape>
 23                      <IndexedLineSet coordIndex='0 1 2 0 -1'>
 24 
                         <!-- Coordinate TriangleCoordinatePoints is a DEF node that has 1 USE node: USE_1 -->
                         <Coordinate DEF='TriangleCoordinatePointspoint='-1 -1 0 1 -1 0 0 1 0'/>
 25                      </IndexedLineSet>
 26                      <Appearance>
 27                           <Material emissiveColor='0.1254902035 1 0.0784313753'/>
 28                      </Appearance>
 29                 </Shape>
 30                 <Shape>
 31                      <IndexedFaceSet colorPerVertex='falsecolorIndex='0coordIndex='0 1 2 0 -1'>
 32                           <Coordinate USE='TriangleCoordinatePoints'/>
 33                           <ColorRGBA color='0 0 0 0'/>
 34                      </IndexedFaceSet>
 35                 </Shape>
 36            </Transform>
 37            <Transform DEF='VertexGroup0translation='-1.1 -1.1 0'>
 38                 <Billboard axisOfRotation='0 0 0'>
 39                      <TouchSensor description='Vertex 0'/>
 40                      <Shape>
 41 
                         <!-- Appearance LABEL_APPEARANCE is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                         <Appearance DEF='LABEL_APPEARANCE'>
 42                                <Material diffuseColor='1 1 .3emissiveColor='.33 .33 .1'/>
 43                           </Appearance>
 44                           <Text string='"0"'>
 45 
                              <!-- FontStyle LABEL_FONT is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                              <FontStyle DEF='LABEL_FONTfamily='"SANS"justify='"MIDDLE" "MIDDLE"size='.2'/>
 46                           </Text>
 47                      </Shape>
 48 
                    <!-- Shape TransparentBox is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                    <Shape DEF='TransparentBox'>
 49                           <Box size='0.2 0.2 0.01'/>
 50                           <Appearance DEF='TransparentAppearance'>
 51                                <Material transparency='1'/>
 52                           </Appearance>
 53                      </Shape>
 54                 </Billboard>
 55            </Transform>
 56            <Transform DEF='VertexGroup1translation='1.1 -1.1 0'>
 57                 <Billboard axisOfRotation='0 0 0'>
 58                      <TouchSensor description='Vertex 1'/>
 59                      <Shape>
 60                           <Appearance USE='LABEL_APPEARANCE'/>
 61                           <Text string='"1"'>
 62                                <FontStyle USE='LABEL_FONT'/>
 63                           </Text>
 64                      </Shape>
 65                      <Shape USE='TransparentBox'/>
 66                 </Billboard>
 67            </Transform>
 68            <Transform DEF='VertexGroup2translation='0 1.1 0'>
 69                 <Billboard axisOfRotation='0 0 0'>
 70                      <TouchSensor description='Vertex 2'/>
 71                      <Shape>
 72                           <Appearance USE='LABEL_APPEARANCE'/>
 73                           <Text string='"2"'>
 74                                <FontStyle USE='LABEL_FONT'/>
 75                           </Text>
 76                      </Shape>
 77                      <Shape USE='TransparentBox'/>
 78                 </Billboard>
 79            </Transform>
 80       </Scene>
 81  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: LABEL_APPEARANCE, LABEL_FONT, PolygonGroup0, TransparentAppearance, TransparentBox, TriangleCoordinatePoints, VertexGroup0, VertexGroup1, VertexGroup2

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Background, Billboard, Box, ColorRGBA, Coordinate, FontStyle, head, IndexedFaceSet, IndexedLineSet, Material, meta, Scene, Shape, Text, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.


TouchSensor
description='Polygon 0' 
User-interaction hint for this node.(TouchSensor description is providing a tooltip)  


TouchSensor
description='Vertex 0' 
User-interaction hint for this node.(TouchSensor description is providing a tooltip)  


TouchSensor
description='Vertex 1' 
User-interaction hint for this node.(TouchSensor description is providing a tooltip)  


TouchSensor
description='Vertex 2' 
User-interaction hint for this node.(TouchSensor description is providing a tooltip)  
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/TriangleWithNumbersIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/TriangleWithNumbers.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. -->