<?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>
<meta name='titlecontent=' Geometry2dComponentExternProtos.x3d '/>
<meta name='descriptioncontent='ExternProto declarations and examples for developmental use showing 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=' TODO content=' Check Polypoint2D and point rendering order '/>
<meta name=' warning content=' These examples are complete but only used for developmental testing, not regular X3D authoring. '/>
<meta name='referencecontent=' Geometry2dComponentPrototypes.x3d '/>
<meta name='referencecontent=' Geometry2dComponentExamples.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/Geometry2dComponentExternProtos.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<!-- ==================== -->
<!-- Do not copy these ExternProtoDeclare statements! They are copied automatically to provide backwards compatibility for VRML97 when using X3dToVrml97.xslt stylesheet mappings. -->
<!-- ==================== -->
<WorldInfo title='Geometry2dComponentExternProtos.x3d'/>
<ExternProtoDeclare name='Arc2D'
  url=' "Geometry2dComponentPrototypes.wrl#Arc2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#Arc2D" "Geometry2dComponentPrototypes.x3d#Arc2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#Arc2D" ' >
<field name='startAngletype='SFFloataccessType='initializeOnly'/>
<field name='endAngletype='SFFloataccessType='initializeOnly'/>
<field name='radiustype='SFFloataccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='ArcClose2D'
  url=' "Geometry2dComponentPrototypes.wrl#ArcClose2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#ArcClose2D" "Geometry2dComponentPrototypes.x3d#ArcClose2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#ArcClose2D" ' >
<field name='startAngletype='SFFloataccessType='initializeOnly'/>
<field name='endAngletype='SFFloataccessType='initializeOnly'/>
<field name='radiustype='SFFloataccessType='initializeOnly'/>
<field name='closureTypetype='SFStringaccessType='initializeOnly'/>
<field name='solidtype='SFBoolaccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='Circle2D'
  url=' "Geometry2dComponentPrototypes.wrl#Circle2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#Circle2D" "Geometry2dComponentPrototypes.x3d#Circle2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#Circle2D" ' >
<field name='radiustype='SFFloataccessType='initializeOnly'/>
<field name='solidtype='SFBoolaccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='Disk2D'
  url=' "Geometry2dComponentPrototypes.wrl#Disk2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#Disk2D" "Geometry2dComponentPrototypes.x3d#Disk2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#Disk2D" ' >
<field name='innerRadiustype='SFFloataccessType='initializeOnly'/>
<field name='outerRadiustype='SFFloataccessType='initializeOnly'/>
<field name='solidtype='SFBoolaccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='Polyline2D'
  url=' "Geometry2dComponentPrototypes.wrl#Polyline2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#Polyline2D" "Geometry2dComponentPrototypes.x3d#Polyline2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#Polyline2D" ' >
<field name='lineSegmentstype='MFVec2faccessType='initializeOnly'/>
<field name='solidtype='SFBoolaccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='Polypoint2D'
  url=' "Geometry2dComponentPrototypes.wrl#Polypoint2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#Polypoint2D" "Geometry2dComponentPrototypes.x3d#Polypoint2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#Polypoint2D" ' >
<field name='pointtype='MFVec2faccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='Rectangle2D'
  url=' "Geometry2dComponentPrototypes.wrl#Rectangle2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#Rectangle2D" "Geometry2dComponentPrototypes.x3d#Rectangle2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#Rectangle2D" ' >
<field name='sizetype='SFVec2faccessType='initializeOnly'/>
<field name='solidtype='SFBoolaccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='TriangleSet2D'
  url=' "Geometry2dComponentPrototypes.wrl#TriangleSet2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#TriangleSet2D" "Geometry2dComponentPrototypes.x3d#TriangleSet2D" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#TriangleSet2D" ' >
<field name='verticestype='MFVec2faccessType='initializeOnly'/>
<field name='solidtype='SFBoolaccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<!-- ==================== -->
<!-- Additional Unfilled versions since FillProperties node not possible in native VRML 97 -->
<!-- ==================== -->
<ExternProtoDeclare name='ArcClose2DUnfilled'
  url=' "Geometry2dComponentPrototypes.wrl#ArcClose2DUnfilled" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#ArcClose2DUnfilled" "Geometry2dComponentPrototypes.x3d#ArcClose2DUnfilled" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#ArcClose2DUnfilled" ' >
<field name='startAngletype='SFFloataccessType='initializeOnly'/>
<field name='endAngletype='SFFloataccessType='initializeOnly'/>
<field name='radiustype='SFFloataccessType='initializeOnly'/>
<field name='closureTypetype='SFStringaccessType='initializeOnly'/>
<field name='solidtype='SFBoolaccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='Rectangle2DUnfilled'
  url=' "Geometry2dComponentPrototypes.wrl#Rectangle2DUnfilled" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#Rectangle2DUnfilled" "Geometry2dComponentPrototypes.x3d#Rectangle2DUnfilled" "https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#Rectangle2DUnfilled" ' >
<field name='sizetype='SFVec2faccessType='initializeOnly'/>
<field name='solidtype='SFBoolaccessType='initializeOnly'/>
<field name='metadatatype='SFNodeaccessType='inputOutput'/>
</ExternProtoDeclare>
<!-- ==================== -->
<!-- ==================== -->
<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='-5 2 0'>
<Shape>
<ProtoInstance name='ArcClose2DcontainerField='geometry'>
<fieldValue name='closureTypevalue='PIE'/>
<fieldValue name='startAnglevalue='0.7'/>
<fieldValue name='endAnglevalue='3'/>
<fieldValue name='radiusvalue='1'/>
</ProtoInstance>
<Appearance>
<Material diffuseColor='0 0 1'/>
</Appearance>
</Shape>
</Transform>
<Transform DEF='ArcClose2DUnfilledTransformtranslation='-2.5 2 0'>
<Shape>
<ProtoInstance name='ArcClose2DUnfilledcontainerField='geometry'>
<fieldValue name='closureTypevalue='PIE'/>
<fieldValue name='startAnglevalue='0.7'/>
<fieldValue name='endAnglevalue='3'/>
<fieldValue name='radiusvalue='1'/>
</ProtoInstance>
<Appearance>
<Material emissiveColor='0.2 0.2 1'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='-0.5 2 0'>
<Shape>
<ProtoInstance name='Arc2DcontainerField='geometry'>
<fieldValue name='startAnglevalue='0'/>
<fieldValue name='endAnglevalue='1.570796'/>
<fieldValue name='radiusvalue='1'/>
</ProtoInstance>
<Appearance>
<Material emissiveColor='1 1 0'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='2 2 0'>
<Shape>
<ProtoInstance name='Circle2DcontainerField='geometry'>
<fieldValue name='radiusvalue='1'/>
</ProtoInstance>
<Appearance>
<Material emissiveColor='1 0 0'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='5 2 0'>
<Shape>
<ProtoInstance name='Disk2DcontainerField='geometry'>
<fieldValue name='innerRadiusvalue='0.5'/>
<fieldValue name='outerRadiusvalue='1'/>
</ProtoInstance>
<Appearance>
<Material diffuseColor='0.5 1 1'/>
</Appearance>
</Shape>
</Transform>
<!-- ==================== -->
<!-- Bottom row -->
<Transform translation='-5 -2 0'>
<Shape>
<ProtoInstance name='Rectangle2DcontainerField='geometry'>
<fieldValue name='sizevalue='1 2'/>
</ProtoInstance>
<Appearance>
<Material diffuseColor='1 0 0'/>
</Appearance>
</Shape>
</Transform>
<Transform DEF='RectangleUnfilledtranslation='-3 -2 0'>
<Shape>
<ProtoInstance name='Rectangle2DUnfilledcontainerField='geometry'>
<fieldValue name='sizevalue='1 2'/>
</ProtoInstance>
<Appearance>
<Material emissiveColor='1 0.2 0.2'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='-0.5 -2 0'>
<Shape>
<ProtoInstance name='Polyline2DcontainerField='geometry'>
<fieldValue name='lineSegmentsvalue='-1 0 -0.5 1 0 0 0.5 1 1 0'/>
</ProtoInstance>
<Appearance>
<Material diffuseColor='0 0 0emissiveColor='1 0.5 1'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='2.5 -2 0'>
<Shape>
<ProtoInstance name='Polypoint2DcontainerField='geometry'>
<fieldValue name='pointvalue='-1 0 -0.5 1 0 0 0.5 1 1 0'/>
</ProtoInstance>
<Appearance>
<Material emissiveColor='1 1 1'/>
</Appearance>
</Shape>
<Transform translation='0 0.5 -0.5'>
<Shape>
<ProtoInstance name='Rectangle2DDEF='BackDropcontainerField='geometry'>
<fieldValue name='sizevalue='2.5 2'/>
</ProtoInstance>
<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='5 -2 0'>
<Shape>
<ProtoInstance name='TriangleSet2DcontainerField='geometry'>
<fieldValue name='verticesvalue='0 0 1 1 -1 1 0 0 1 0.5 1 -0.5 0 0 -1 -2 -2 -1'/>
</ProtoInstance>
<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: ArcClose2DUnfilledTransform, BackDrop, RectangleUnfilled, TestFillProperties, TestLineProperties, TestLinePropertiesMetaData

Index for Viewpoint node: Viewpoint_1 Index for ExternProtoDeclare definitions: Arc2D, ArcClose2D, ArcClose2DUnfilled, Circle2D, Disk2D, Polyline2D, Polypoint2D, Rectangle2D, Rectangle2DUnfilled, TriangleSet2D
-->

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.


ProtoInstance
ArcClose2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
ArcClose2DUnfilled
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
Arc2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
Circle2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
Disk2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
Rectangle2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
Rectangle2DUnfilled
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
Polyline2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
Polypoint2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 



ProtoInstance
TriangleSet2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 


BackDrop
ProtoInstance
Rectangle2D
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentExternProtosIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentExternProtos.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

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