<?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='Geometry2dComponentExamples.x3d'/>
<Background groundColor='0.3 0.3 0.3' skyColor='0.3 0.3 0.3'/>
<Viewpoint description='Geometry2D Component Examples' position='0 0 12'/>
<!-- ==================== -->
<!-- Top row -->
<Transform translation='-6 2 0'>
<TouchSensor description='ArcClose2D'/>
<Shape>
<ArcClose2D closureType='PIE' endAngle='3.0' startAngle='0.7'/>
<!-- default radius='1' -->
<Appearance>
<Material diffuseColor='0 0 1' emissiveColor='0 0 1'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='-2 2 0'>
<TouchSensor description='Arc2D'/>
<Shape>
<Arc2D/>
<!-- default radius='1' startAngle='0' -->
<Appearance>
<Material emissiveColor='1 1 0'/>
</Appearance>
</Shape>
<Transform DEF='TransparentBackdropForTouchSensor' translation='0 0 -0.5'>
<Shape>
<Rectangle2D/>
<!-- default -->
<Appearance>
<Material diffuseColor='1 0 0' transparency='1'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<Transform translation='2 2 0'>
<TouchSensor description='Circle2D'/>
<Shape>
<Circle2D/>
<!-- default radius='1' -->
<Appearance>
<Material emissiveColor='1 0 0'/>
</Appearance>
</Shape>
<Transform USE='
TransparentBackdropForTouchSensor'/>
</Transform>
<Transform translation='6 2 0'>
<TouchSensor description='Disk2D'/>
<Shape>
<Disk2D innerRadius='0.5'/>
<!-- default outerRadius='1' -->
<Appearance>
<Material diffuseColor='0.5 1 1'/>
</Appearance>
</Shape>
</Transform>
<!-- ==================== -->
<!-- Bottom row -->
<Transform translation='-6 -2 0'>
<TouchSensor description='Rectangle2D'/>
<Shape>
<Rectangle2D size='1 2'/>
<Appearance>
<Material diffuseColor='1 0 0'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='-2 -2 0'>
<TouchSensor description='Polyline2D'/>
<Shape>
<Polyline2D lineSegments='-1 0 -0.5 1 0 0 0.5 1 1 0'/>
<Appearance>
<Material diffuseColor='0 0 0' emissiveColor='1 0.5 1'/>
</Appearance>
</Shape>
<Transform USE='
TransparentBackdropForTouchSensor'/>
</Transform>
<Transform translation='2 -2 0'>
<TouchSensor description='Polypoint2D'/>
<Shape>
<Polypoint2D point='-1 0 -0.5 1 0 0 0.5 1 1 0'/>
<Appearance>
<Material emissiveColor='1 1 1'/>
</Appearance>
</Shape>
<Transform translation='0.1 0.4 -0.5'>
<Shape>
<Rectangle2D DEF='BackDrop' size='2.8 2'/>
<Appearance>
<Material diffuseColor='0 0 0'/>
</Appearance>
</Shape>
<Transform translation='0 -0.15 0.2'>
<Shape>
<Text string='"PolyPoint2D" "5 points"'>
<FontStyle justify='"MIDDLE" "MIDDLE"' size='0.25' style='BOLD'/>
</Text>
<Appearance>
<Material/>
</Appearance>
</Shape>
</Transform>
</Transform>
</Transform>
<Transform translation='6 -2 0'>
<TouchSensor description='TriangleSet2D'/>
<Shape>
<TriangleSet2D vertices='0 0 1 1 -1 1 0 0 1 -0.5 1 0.5 0 0 -2 -1 -1 -2'/>
<Appearance>
<
FillProperties DEF='
TestFillProperties'
containerField='
fillProperties'/>
<
LineProperties DEF='
TestLineProperties'
linewidthScaleFactor='
1'
containerField='
lineProperties'>
</
LineProperties>
<Material diffuseColor='0 1 0'/>
</Appearance>
</Shape>
</Transform>
</Scene>
</X3D>
<!--
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentExamplesIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentExamples.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.
-->