<?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>
</head>
<!--
-->
<Scene>
<WorldInfo title='RenderingComponentExamples.x3d'/>
<Viewpoint description='set viewpoint 35 meters along positive z axis' position='0 -5 35'/>
<Background groundColor='1 1 1' skyColor='1 1 1'/>
<!-- new node tests follow -->
<Transform DEF='TestCoordinateDoubleColorRGBA' translation='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 2' value='"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 1' value='"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='TestOrderedTriangleNodes' translation='-5 0 0'>
<Transform>
</Transform>
<Transform DEF='TestTriangleFanSet' translation='0 -6 0'>
<Shape>
<TriangleFanSet ccw='true' colorPerVertex='false' fanCount='6 6' normalPerVertex='true' solid='false' containerField='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='FanColors' color='0.5 0.1 0.5 0.8 0.3 0.8'/>
</TriangleFanSet>
</Shape>
</Transform>
<Transform>
<Shape>
<TriangleStripSet ccw='true' colorPerVertex='true' normalPerVertex='true' solid='true' containerField='geometry'/>
<Appearance USE='
DefaultAppearance'/>
</Shape>
</Transform>
</Transform>
<Transform DEF='TestIndexedTriangleNodes' translation='5 0 0'>
<Transform>
<Shape>
<IndexedTriangleSet ccw='true' colorPerVertex='true' index='11 10 9 8 7 6 5 4 3 2 1 0' normalPerVertex='true' solid='false' containerField='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='true' colorPerVertex='false' index='0 1 2 3 4 5 -1 0 5 6 7 8 1 -1' normalPerVertex='true' solid='false' containerField='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='true' colorPerVertex='true' index='0 1 2 3 4 5 6 7 8 9 10 11 12 -1' normalPerVertex='true' solid='false' containerField='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='TestLineSet' translation='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>
<!--
-->
-->
<!--
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)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->