X3D Model Documentation: CadGeometryExternPrototypes.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd">
  3  <X3D profile='Immersive' version='3.1 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.1.xsd'>
  4       <head>
  5            <meta name='titlecontent='CadGeometryExternPrototypes.x3d'/>
  6            <meta name='descriptioncontent='This scene provides tool developers with X3D Amendment 1 CAD Component node prototypes, providing backwards compatibility with VRML97 and X3D v3.0.'/>
  7            <meta name='creatorcontent='Travis Rauch, Alan Shaffer, Mounir Sidhom, Patrick Sullivan and Don Brutzman'/>
  8            <meta name='createdcontent='28 April 2005'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name=' warning content=' Do not use these prototypes in an up-to-date X3D browser that already provides CAD support. '/>
 11            <meta name='informationcontent='Recommended practice: avoid using these prototypes, instead use native definitions for CAD nodes using an up-to-date X3D browser.'/>
 12            <meta name='informationcontent='These scenes are not intended for regular authoring - use X3D v3.2 CAD component instead. Example scenes using these prototypes do not get support for making embdedded metadata values visible at run time, though metadata can certainly be saved in the scene file OK.'/>
 13            <meta name='informationcontent='Example scenes using these prototypes do not get support for making embedded metadata values visible at run time, though separate metadata nodes can certainly be saved in the scene file OK.'/>
 14            <meta name='referencecontent='CadGeometryPrototypes.x3d'/>
 15            <meta name='referencecontent='CadTeapot.x3d'/>
 16            <meta name='subjectcontent='CADAssembly CADFace CADLayer CADPart IndexedQuadSet QuadSet'/>
 17            <meta name='referencecontent='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/CADGeometry.html'/>
 18            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryExternPrototypes.x3d'/>
 19            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 20            <meta name='licensecontent='../license.html'/>
 21       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF node: White

Index for ExternProtoDeclare definitions: CADAssembly, CADFace, CADLayer, CADPart, IndexedQuadSet, QuadSet
-->
 22       <Scene>
 23            <WorldInfo title='CadGeometryExternPrototypes.x3d'/>
 24            <ExternProtoDeclare name='IndexedQuadSetappinfo='The IndexedQuadSet node represents a 3D shape composed of a collection of individual quadrilaterals (quads). IndexedQuadSet uses the indices in its index field to specify the vertices of each quad from the coord field. Each quad is formed from a set of four vertices of the Coordinate node identified by four consecutive indices from the index field If the index field does not contain a multiple of four coordinate values the remaining vertices shall be ignored.' documentation='https://www.web3d.org/x3d/specifications/ISO-IEC-19775-Amendment1-PDAM-X3DAbstractSpecification/Part01/components/CADGeometry.html#IndexedQuadSet'   url=' "CadGeometryPrototypes.x3d#IndexedQuadSet" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.x3d#IndexedQuadSet" "CadGeometryPrototypes.wrl#IndexedQuadSet" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.wrl#IndexedQuadSet" '>
 25                 <field name='set_indextype='MFInt32accessType='inputOnly'/>
 26                 <field name='colortype='SFNodeaccessType='inputOutput'
                appinfo='[X3DColorNode]'/>
 27                 <field name='coordtype='SFNodeaccessType='inputOutput'
                appinfo='[X3DCoordinateNode]'/>
 28                 <field name='fogCoordtype='SFNodeaccessType='inputOutput'
                appinfo='[FogCoordinate]'/>
 29                 <field name='normaltype='SFNodeaccessType='inputOutput'
                appinfo='[X3DNormalNode]'/>
 30                 <field name='texCoordtype='SFNodeaccessType='inputOutput'
                appinfo='[X3DTextureCoordinateNode]'/>
 31                 <field name='ccwtype='SFBoolaccessType='initializeOnly'/>
 32                 <field name='colorPerVertextype='SFBoolaccessType='initializeOnly'/>
 33                 <field name='normalPerVertextype='SFBoolaccessType='initializeOnly'/>
 34                 <field name='solidtype='SFBoolaccessType='initializeOnly'/>
 35                 <field name='indextype='MFInt32accessType='initializeOnly'/>
 36                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 37            </ExternProtoDeclare>
 38            <!-- =========================================== -->
 39            <ExternProtoDeclare name='QuadSetappinfo='The QuadSet node represents a 3D shape that represents a collection of individual planar quadrilaterals. The coord field contains a Coordinate node that defines the 3D vertices that define the quad. Each quad is formed from a consecutive set of four vertices of the coordinate node. If the coordinate node does not contain a multiple of four coordinate values the remaining vertices shall be ignored.' documentation='https://www.web3d.org/x3d/specifications/ISO-IEC-19775-Amendment1-PDAM-X3DAbstractSpecification/Part01/components/CADGeometry.html#QuadSet'   url=' "CadGeometryPrototypes.x3d#QuadSet" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.x3d#QuadSet" "CadGeometryPrototypes.wrl#QuadSet" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.wrl#QuadSet" '>
 40                 <field name='attribtype='MFNodeaccessType='inputOutput'
                appinfo='[X3DVertexAttributeNode]'/>
 41                 <field name='colortype='SFNodeaccessType='inputOutput'
                appinfo='[X3DColorNode]'/>
 42                 <field name='coordtype='SFNodeaccessType='inputOutput'
                appinfo='[X3DCoordinateNode]'/>
 43                 <field name='fogCoordtype='SFNodeaccessType='inputOutput'
                appinfo='[FogCoordinate]'/>
 44                 <field name='normaltype='SFNodeaccessType='inputOutput'
                appinfo='[X3DNormalNode]'/>
 45                 <field name='texCoordtype='SFNodeaccessType='inputOutput'
                appinfo='[X3DTextureCoordinateNode]'/>
 46                 <field name='ccwtype='SFBoolaccessType='initializeOnly'/>
 47                 <field name='colorPerVertextype='SFBoolaccessType='initializeOnly'/>
 48                 <field name='normalPerVertextype='SFBoolaccessType='initializeOnly'/>
 49                 <field name='solidtype='SFBoolaccessType='initializeOnly'/>
 50                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 51            </ExternProtoDeclare>
 52            <!-- ======================================== -->
 53            <ExternProtoDeclare name='CADLayerappinfo='The CADLayer node defines a hierarchy of nodes used for showing layer structure.' documentation='https://www.web3d.org/x3d/specifications/ISO-IEC-19775-Amendment1-PDAM-X3DAbstractSpecification/Part01/components/CADGeometry.html#CADLayer'   url=' "CadGeometryPrototypes.x3d#CADLayer" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.x3d#CADLayer" "CadGeometryPrototypes.wrl#CADLayer" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.wrl#CADLayer" '>
 54                 <field name='addChildrentype='MFNodeaccessType='inputOnly'/>
 55                 <field name='removeChildrentype='MFNodeaccessType='inputOnly'/>
 56                 <field name='childrentype='MFNodeaccessType='inputOutput'/>
 57                 <field name='nametype='SFStringaccessType='inputOutput'/>
 58                 <field name='visibletype='MFBoolaccessType='inputOutput'/>
 59                 <field name='bboxCentertype='SFVec3faccessType='initializeOnly'/>
 60                 <field name='bboxSizetype='SFVec3faccessType='initializeOnly'/>
 61                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 62            </ExternProtoDeclare>
 63            <!-- ======================================== -->
 64            <ExternProtoDeclare name='CADAssemblyappinfo='The CADAssembly node holds a set of assemblies or parts grouped together.' documentation='https://www.web3d.org/x3d/specifications/ISO-IEC-19775-Amendment1-PDAM-X3DAbstractSpecification/Part01/components/CADGeometry.html#CADAssembly'   url=' "CadGeometryPrototypes.x3d#CADAssembly" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.x3d#CADAssembly" "CadGeometryPrototypes.wrl#CADAssembly" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.wrl#CADAssembly" '>
 65                 <field name='addChildrentype='MFNodeaccessType='inputOnly'/>
 66                 <field name='removeChildrentype='MFNodeaccessType='inputOnly'/>
 67                 <field name='childrentype='MFNodeaccessType='inputOutput'/>
 68                 <field name='nametype='SFStringaccessType='inputOutput'/>
 69                 <field name='bboxCentertype='SFVec3faccessType='initializeOnly'/>
 70                 <field name='bboxSizetype='SFVec3faccessType='initializeOnly'/>
 71                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 72            </ExternProtoDeclare>
 73            <!-- ======================================== -->
 74            <ExternProtoDeclare name='CADPartappinfo='CADPart represents the location and faces that constitute a part' documentation='https://www.web3d.org/x3d/specifications/ISO-IEC-19775-Amendment1-PDAM-X3DAbstractSpecification/Part01/components/CADGeometry.html#CADPart'   url=' "CadGeometryPrototypes.wrl#CADPart" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.wrl#CADPart" "CadGeometryPrototypes.x3d#CADPart" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.x3d#CADPart" '>
 75                 <field name='addChildrentype='MFNodeaccessType='inputOnly'/>
 76                 <field name='removeChildrentype='MFNodeaccessType='inputOnly'/>
 77                 <field name='childrentype='MFNodeaccessType='inputOutput'/>
 78                 <field name='nametype='SFStringaccessType='inputOutput'/>
 79                 <field name='translationtype='SFVec3faccessType='inputOutput'/>
 80                 <field name='rotationtype='SFRotationaccessType='inputOutput'/>
 81                 <field name='centertype='SFVec3faccessType='inputOutput'/>
 82                 <field name='scaletype='SFVec3faccessType='inputOutput'/>
 83                 <field name='scaleOrientationtype='SFRotationaccessType='inputOutput'/>
 84                 <field name='bboxCentertype='SFVec3faccessType='initializeOnly'/>
 85                 <field name='bboxSizetype='SFVec3faccessType='initializeOnly'/>
 86                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 87            </ExternProtoDeclare>
 88            <!-- ======================================== -->
 89            <ExternProtoDeclare name='CADFaceappinfo='The CADFace node holds the geometry representing a face of a part.' documentation='https://www.web3d.org/x3d/specifications/ISO-IEC-19775-Amendment1-PDAM-X3DAbstractSpecification/Part01/components/CADGeometry.html#CADFace'   url=' "CadGeometryPrototypes.x3d#CADFace" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.x3d#CADFace" "CadGeometryPrototypes.wrl#CADFace" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryPrototypes.wrl#CADFace" '>
 90                 <field name='nametype='SFStringaccessType='inputOutput'/>
 91                 <field name='shapetype='SFNodeaccessType='inputOutput'/>
 92                 <field name='bboxCentertype='SFVec3faccessType='initializeOnly'/>
 93                 <field name='bboxSizetype='SFVec3faccessType='initializeOnly'/>
 94                 <field name='metadatatype='SFNodeaccessType='inputOutput'/>
 95            </ExternProtoDeclare>
 96            <!-- ======================================== -->
 97            <Transform translation='0 -2 0'>
 98                 <Anchor description='CAD Teapot'   url=' "CadTeapot.x3d" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadTeapot.x3d" "CadTeapot.wrl" "https://www.web3d.org/x3d/content/examples/Basic/CAD/CadTeapot.wrl" '>
 99                      <Shape>
100                           <Text string='"Example CAD structure nodes" "are found in CadTeapot.x3d"'>
101                                <FontStyle justify='"MIDDLE" "MIDDLE"size='0.9'/>
102                           </Text>
103                           <Appearance>
104                                <Material diffuseColor='1 1 0.2'/>
105                           </Appearance>
106                      </Shape>
107                 </Anchor>
108            </Transform>
109            <Transform translation='-3 2 0'>
110                 <Shape>
111 
                    <!-- Appearance White is a DEF node that has 1 USE node: USE_1 -->
                    <Appearance DEF='White'>
112                           <Material diffuseColor='1 1 1'/>
113                      </Appearance>
114                      <ProtoInstance name='IndexedQuadSetcontainerField='geometry'>
115                           <fieldValue name='indexvalue='0 3 2 1 4 5 6 7 2 7 9 8 2 3 4 7'/>
116                           <fieldValue name='coord'>
117                                <Coordinate point='-1.5 0 0 -1.5 1 -1 -.5 1 -1 -.5 0 0 0.5 0 0 1.5 0 0 1.5 1 -1 0.5 1 -1 -0.5 2 -1 0.5 2 -1'/>
118                           </fieldValue>
119                      </ProtoInstance>
120                 </Shape>
121            </Transform>
122            <Transform translation='3 2 0'>
123                 <Shape>
124                      <Appearance USE='White'/>
125                      <ProtoInstance name='QuadSetcontainerField='geometry'>
126                           <fieldValue name='coord'>
127                                <Coordinate point='-1.5 0 0 -1.5 1 -1 -0.5 1 -1 -0.5 0 0 0.5 0 0 1.5 0 0 1.5 1 -1 0.5 1 -1'/>
128                           </fieldValue>
129                      </ProtoInstance>
130                 </Shape>
131            </Transform>
132            <!-- ======================================== -->
133            <!-- Silence scene warnings by providing ordered ProtoInstance examples. Note warning above that this scene is for developmental use. The ProtoInstance form of the CAD nodes should not be used, native X3D encoding should be used instead. -->
134            <ProtoInstance name='CADLayer'>
135                 <fieldValue name='children'>
136                      <ProtoInstance name='CADAssembly'>
137                           <fieldValue name='children'>
138                                <ProtoInstance name='CADPart'>
139                                     <fieldValue name='children'>
140                                          <ProtoInstance name='CADFace'>
141                                               <fieldValue name='shape'>
142                                                    <Shape>
143                                                         <Cylinder bottom='falseheight='0.000001radius='0.000001side='false'/>
144                                                         <Appearance>
145                                                              <Material/>
146                                                         </Appearance>
147                                                    </Shape>
148                                               </fieldValue>
149                                          </ProtoInstance>
150                                     </fieldValue>
151                                </ProtoInstance>
152                           </fieldValue>
153                      </ProtoInstance>
154                 </fieldValue>
155            </ProtoInstance>
156       </Scene>
157  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF node: White

Index for ExternProtoDeclare definitions: CADAssembly, CADFace, CADLayer, CADPart, IndexedQuadSet, QuadSet
-->
X3D Tooltips element index: Anchor, Appearance, Coordinate, Cylinder, ExternProtoDeclare, field, fieldValue, FontStyle, head, Material, meta, ProtoInstance, Scene, Shape, Text, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table with 0 ROUTE connections 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
IndexedQuadSet
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declaration with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
QuadSet
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declaration with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
CADLayer
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declaration with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
CADAssembly
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declaration with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
CADPart
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declaration with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
CADFace
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declaration with
direct access to other nodes, and thus has potential to produce run-time animation. 


Anchor
description='CAD Teapot' 
User-interaction hint for this node. 
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

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