<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive'  version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.0.xsd ' >
<head>
<!-- NURBS component or Full profile needed to use CoordinateDouble node -->
<!-- Geometry2D component or Full profile needed to use TriangleSet2D node -->
<component level='1name='NURBS'/>
<component level='1name='Geometry2D'/>
<meta name='titlecontent=' RenderingComponentExamples.x3d '/>
<meta name='descriptioncontent='Examples showing use of new X3D Rendering component nodes (IndexedTriangleFanSet IndexedTriangleSet IndexedTriangleStripSet LineSet TriangleFanSet TriangleSet TriangleStripSet), implemented as prototypes for backwards compatibility with VRML 97.'/>
<meta name='creatorcontent='Don Brutzman, Ken Curtin, Duane Davis, Christos Kalogrias'/>
<meta name='createdcontent='17 November 2003'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name=' TODO content=' Extract, move TriangleStripSet example to X3dSpecifications directory '/>
<meta name='referencecontent=' https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/rendering.html '/>
<meta name='referencecontent=' RenderingComponentPrototypes.x3d '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TriangleStripSetFigure.x3d '/>
<meta name='infocontent='X3dToVrml97.xslt translation stylesheet automatically invokes these prototypes upon encountering any new Rendering nodes.'/>
<meta name='referencecontent=' https://www.web3d.org/x3d/stylesheets/X3dToVrml97.xslt '/>
<meta name='subjectcontent='X3D Rendering component nodes (IndexedTriangleFanSet IndexedTriangleSet IndexedTriangleStripSet LineSet TriangleFanSet TriangleSet TriangleStripSet)'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/development/RenderingComponentExamples.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='RenderingComponentExamples.x3d'/>
<Viewpoint description='set viewpoint 35 meters along positive z axisposition='0 -5 35'/>
<Background groundColor='1 1 1skyColor='1 1 1'/>
<!-- new node tests follow -->
<Transform DEF='TestCoordinateDoubleColorRGBAtranslation='0 5 0'>
<Transform translation='-2 0 0'>
<Shape>
<IndexedLineSet coordIndex='0 1 2 3 0 -1 4 5 6 7 4 -1 0 4 -1 1 5 -1 2 6 -1 3 7'>
<Coordinate point='-1.0 1 1.0 1.0 1 1.0 1.0 1 -1.0 -1.0 1 -1.0 -1.0 -1 1.0 1.0 -1 1.0 1.0 -1 -1.0 -1.0 -1 -1.0'/>
<ColorRGBA color='0.9 0.9 0.9 0 1 0 0 0 0 1 0 0 0 0 1 0 0.5 0.5 0 0 0 0.5 0.5 0 0.5 0 0.5 0 0.37 0.93 0.87 0'>
<MetadataString name='example 2value='"test metadata child"'/>
</ColorRGBA>
</IndexedLineSet>
</Shape>
</Transform>
<Transform translation='2 0 0'>
<Shape>
<IndexedLineSet coordIndex='0 1 2 3 0 -1 4 5 6 7 4 -1 0 4 -1 1 5 -1 2 6 -1 3 7'>
<CoordinateDouble point='-1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 -1.0 -1.0 1.0 -1.0 -1.0 -1.0 1.0 1.0 -1.0 1.0 1.0 -1.0 -1.0 -1.0 -1.0 -1.0'>
<MetadataString name='example 1value='"test metadata child"'/>
</CoordinateDouble>
<Color color='0.9 0.9 0.9 1 0 0 0 1 0 0 0 1 0.5 0.5 0 0 0.5 0.5 0.5 0 0.5 0.37 0.93 0.87'/>
</IndexedLineSet>
</Shape>
</Transform>
</Transform>
<Transform DEF='TestOrderedTriangleNodestranslation='-5 0 0'>
<Transform>
<Shape>
<TriangleSet2D/>
<Appearance DEF='DefaultAppearance'>
<Material/>
</Appearance>
</Shape>
</Transform>
<Transform DEF='TestTriangleFanSettranslation='0 -6 0'>
<Shape>
<TriangleFanSet ccw='truecolorPerVertex='falsefanCount='6 6normalPerVertex='truesolid='falsecontainerField='geometry'>
<Coordinate point='0 0 0 -.5 -2 .5 -1.5 -2 1 -2.5 -1.5 0.5 -2.5 -.5 0 -2.5 1 .5 0 0 0 -2.5 1 .5 .5 2 0 1.5 1.5 .5 2.5 .5 0 -.5 -2 .5'/>
<Color DEF='FanColorscolor='0.5 0.1 0.5 0.8 0.3 0.8'/>
</TriangleFanSet>
</Shape>
</Transform>
<Transform>
<Shape>
<TriangleStripSet ccw='truecolorPerVertex='truenormalPerVertex='truesolid='truecontainerField='geometry'/>
<Appearance USE=' DefaultAppearance'/>
</Shape>
</Transform>
</Transform>
<Transform DEF='TestIndexedTriangleNodestranslation='5 0 0'>
<Transform>
<Shape>
<IndexedTriangleSet ccw='truecolorPerVertex='trueindex='11 10 9 8 7 6 5 4 3 2 1 0normalPerVertex='truesolid='falsecontainerField='geometry'>
<Coordinate point='-6 .5 -.5 1.5 -3.5 -.5 0 0 1 -6 .5 -.5 0 0 1 2.0 2.0 -.5 0 0 1 1.5 -3.5 -.5 2.0 2.0 -.5 -6 .5 -.5 1.5 -3.5 -.5 2.0 2.0 -.5'/>
<Color color='1 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0.9 0.9 0.9 0 1 0 0 0 1 0.9 0.9 0.9 1 0 0 0.9 0.9 0.9 0 0 1'/>
</IndexedTriangleSet>
</Shape>
</Transform>
<Transform translation='0 -6 0'>
<Shape>
<IndexedTriangleFanSet ccw='truecolorPerVertex='falseindex='0 1 2 3 4 5 -1 0 5 6 7 8 1 -1normalPerVertex='truesolid='falsecontainerField='geometry'>
<Coordinate point='0 0 0 -.5 -2 .5 -1.5 -2 1 -2.5 -1.5 0.5 -2.5 -.5 0 -2.5 1 .5 .5 2 0 1.5 1.5 .5 2.5 .5 0'/>
</IndexedTriangleFanSet>
<Appearance>
<Material diffuseColor='0.5 0.1 0.5'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='0 -10 0'>
<Shape>
<IndexedTriangleStripSet ccw='truecolorPerVertex='trueindex='0 1 2 3 4 5 6 7 8 9 10 11 12 -1normalPerVertex='truesolid='falsecontainerField='geometry'>
<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'/>
</IndexedTriangleStripSet>
<Appearance>
<Material diffuseColor='0 .3 .7'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<Transform DEF='TestLineSettranslation='0 -15 0'>
<Shape>
<IndexedLineSet coordIndex='0 1 2 3 0 -1 4 5 6 7 4 -1 0 4 -1 1 5 -1 2 6 -1 3 7'>
<Coordinate point='-3.0 1.0 1.0 3.0 1.0 1.0 3.0 1.0 -1.0 -3.0 1.0 -1.0 -3.0 -1.0 1.0 3.0 -1.0 1.0 3.0 -1.0 -1.0 -3.0 -1.0 -1.0'/>
<ColorRGBA color='1 1 1 0 1 0 0 0 0 1 0 0 0 0 1 0 0.5 0.5 0 0 0 0.5 0.5 0 0.5 0 0.5 0 0.37 0.93 0.87 0'/>
</IndexedLineSet>
</Shape>
</Transform>
</Scene>
</X3D>
<!--

to top <!-- Index for DEF nodes: DefaultAppearance, FanColors, TestCoordinateDoubleColorRGBA, TestIndexedTriangleNodes, TestLineSet, TestOrderedTriangleNodes, TestTriangleFanSet

Index for Viewpoint node: Viewpoint_1
-->
-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/development/RenderingComponentExamplesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/RenderingComponentExamples.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. -->