<?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>
<component level='2name='Geometry2D'/>
<meta name='titlecontent=' Geometry2dComponentExamples.x3d '/>
<meta name='descriptioncontent='Examples showing native use of X3D Geometry2D component nodes (Arc2D ArcClose2D Circle2D Disk2D Polyline2D Polypoint2D Rectangle2D TriangleSet2D), implemented as prototypes for backwards compatibility with VRML 97. Also provides Unfilled ProtoInstance versions of some nodes since FillProperties not possible in VRML 97. 2D nodes are considered particularly helpful for CADPart geometry and building user interfaces such as Heads-Up Displays (HUDs).'/>
<meta name='creatorcontent='Christos Kalogrias, Don Brutzman, Ken Curtin, Duane Davis'/>
<meta name='createdcontent='16 November 2003'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='Imagecontent='Geometry2dComponentExamplesBsContact.png' />
<meta name='Imagecontent='Geometry2dComponentExamplesCobweb.png' />
<meta name='Imagecontent='Geometry2dComponentExamplesFreeWRL.png' />
<meta name='Imagecontent='Geometry2dComponentExamplesH3dViewer.png' />
<meta name='Imagecontent='Geometry2dComponentExamplesInstantReality.png' />
<meta name='Imagecontent='Geometry2dComponentExamplesOctagaVS.png' />
<meta name='Imagecontent='Geometry2dComponentExamplesView3dScene.png' />
<meta name='Imagecontent='Geometry2dComponentExamplesX3DOM.png' />
<meta name='referencecontent=' Geometry2dComponentExternProtos.x3d '/>
<meta name='referencecontent=' Geometry2dComponentPrototypes.x3d '/>
<meta name='referencecontent=' https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/geometry2D.html '/>
<meta name='subjectcontent='Geometry2D component nodes (Arc2D ArcClose2D Circle2D Disk2D Polyline2D Polypoint2D Rectangle2D TriangleSet2D)'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentExamples.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: BackDrop, TestFillProperties, TestLineProperties, TestLinePropertiesMetaData, TransparentBackdropForTouchSensor

Index for Viewpoint node: Viewpoint_1
-->
<Scene>
<!-- ==================== -->
<WorldInfo title='Geometry2dComponentExamples.x3d'/>
<Background groundColor='0.3 0.3 0.3skyColor='0.3 0.3 0.3'/>
<Viewpoint description='Geometry2D Component Examplesposition='0 0 12'/>
<!-- ==================== -->
<!-- Top row -->
<Transform translation='-6 2 0'>
<TouchSensor description='ArcClose2D'/>
<Shape>
<ArcClose2D closureType='PIEendAngle='3.0startAngle='0.7'/>
<!-- default radius='1' -->
<Appearance>
<Material diffuseColor='0 0 1emissiveColor='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='TransparentBackdropForTouchSensortranslation='0 0 -0.5'>
<Shape>
<Rectangle2D/>
<!-- default -->
<Appearance>
<Material diffuseColor='1 0 0transparency='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 0emissiveColor='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='BackDropsize='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.25style='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='TestFillPropertiescontainerField='fillProperties'/>
<LineProperties DEF='TestLinePropertieslinewidthScaleFactor='1containerField='lineProperties'>
<MetadataString DEF='TestLinePropertiesMetaDataname='test LineProperties metadata child'/>
</LineProperties>
<Material diffuseColor='0 1 0'/>
</Appearance>
</Shape>
</Transform>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: BackDrop, TestFillProperties, TestLineProperties, TestLinePropertiesMetaData, TransparentBackdropForTouchSensor

Index for Viewpoint node: Viewpoint_1
-->

Event Graph ROUTE Table with 0 ROUTE 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.


-->

<!-- 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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->