X3D Model Documentation: TriangleStripSetFigure.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            <!-- NURBS component or Full profile needed to use CoordinateDouble node -->
  6            <!-- Geometry2D component or Full profile needed to use TriangleSet2D node -->
  7            <component level='1name='NURBS'/>
  8            <component level='1name='Geometry2D'/>
  9            <meta name='titlecontent='TriangleStripSetFigure.x3d'/>
 10            <meta name='descriptioncontent='X3D specification example for TriangleStripSet.'/>
 11            <meta name='creatorcontent='Don Brutzman'/>
 12            <meta name='createdcontent='17 November 2003'/>
 13            <meta name='modifiedcontent='28 October 2019'/>
 14            <meta name='specificationSectioncontent='X3D Abstract Specification, Part 1: Architecture and base components, Topic 11.4.14 TriangleStripSet'/>
 15            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/rendering.html#TriangleStripSet'/>
 16            <meta name=' TODO content=' confirm indices in specification diagram '/>
 17            <meta name='Imagecontent='TriangleStripSet.png'/>
 18            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/Basic/development/RenderingComponentExamples.x3d'/>
 19            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/Basic/development/RenderingComponentPrototypes.x3d'/>
 20            <meta name='infocontent='X3dToVrml97.xslt translation stylesheet automatically invokes backwards-compatibility prototypes upon encountering any new Rendering nodes.'/>
 21            <meta name='referencecontent='https://www.web3d.org/x3d/stylesheets/X3dToVrml97.xslt'/>
 22            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TriangleStripSetFigure.x3d'/>
 23            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 24            <meta name='licensecontent='../license.html'/>
 25       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF node: GreyAppearance

Index for Viewpoint node: Viewpoint_1
-->
 26       <Scene>
 27            <WorldInfo title='TriangleStripSetFigure.x3d'/>
 28            <Viewpoint description='IndexedTriangleStripSet, TriangleStripSet exampleposition='-1 0 16'/>
 29            <Background groundColor='1 1 1skyColor='1 1 1'/>
 30            <Transform translation='0 4 0'>
 31                 <TouchSensor description='IndexedTriangleStripSet'/>
 32                 <Shape>
 33                      <IndexedTriangleStripSet ccw='truecolorPerVertex='trueindex='0 1 2 3 4 5 6 7 8 9 10 11 12 -1normalPerVertex='truesolid='falsecontainerField='geometry'>
 34                           <Coordinate point='-4.0 -1.0 -.5 -4.5 -2.0 -.5 -3.0 -.5 0 -2.5 -1.5 -.5 -2.0 -.5 -1 -1.5 -1.5 -.5 -.5 .5 -.5 0 0 0 1 .5 -.5 1.5 -2.0 -1 2.5 -2.0 -.5 2.5 -2.5 -.5 3.5 -2.0 -1.0'/>
 35                      </IndexedTriangleStripSet>
 36                      <Appearance>
 37                           <Material diffuseColor='0 .3 .7'/>
 38                      </Appearance>
 39                 </Shape>
 40            </Transform>
 41            <Transform translation='0 -2 0'>
 42                 <TouchSensor description='TriangleStripSet'/>
 43                 <Shape>
 44                      <TriangleStripSet ccw='truecolorPerVertex='truenormalPerVertex='truesolid='falsestripCount='13containerField='geometry'>
 45                           <Coordinate point='-4.0 -1.0 -.5 -4.5 -2.0 -.5 -3.0 -.5 0 -2.5 -1.5 -.5 -2.0 -.5 -1 -1.5 -1.5 -.5 -.5 .5 -.5 0 0 0 1 .5 -.5 1.5 -2.0 -1 2.5 -2.0 -.5 2.5 -2.5 -.5 3.5 -2.0 -1.0'/>
 46                      </TriangleStripSet>
 47                      <Appearance DEF='GreyAppearance'>
 48                           <Material diffuseColor='0.5 0.5 0.5'/>
 49                      </Appearance>
 50                 </Shape>
 51            </Transform>
 52       </Scene>
 53  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF node: GreyAppearance

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Background, component, Coordinate, head, IndexedTriangleStripSet, Material, meta, Scene, Shape, TouchSensor, Transform, TriangleStripSet, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TriangleStripSetFigureIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TriangleStripSetFigure.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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. -->