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='title' content='CadGeometryExternPrototypes.x3d'/> |
6 | <meta name='description' content='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='creator' content='Travis Rauch, Alan Shaffer, Mounir Sidhom, Patrick Sullivan and Don Brutzman'/> |
8 | <meta name='created' content='28 April 2005'/> |
9 | <meta name='modified' content='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='information' content='Recommended practice: avoid using these prototypes, instead use native definitions for CAD nodes using an up-to-date X3D browser.'/> |
12 | <meta name='information' content='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='information' content='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='reference' content='CadGeometryPrototypes.x3d'/> |
15 | <meta name='reference' content='CadTeapot.x3d'/> |
16 | <meta name='subject' content='CADAssembly CADFace CADLayer CADPart IndexedQuadSet QuadSet'/> |
17 | <meta name='reference' content='https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/CADGeometry.html'/> |
18 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/CAD/CadGeometryExternPrototypes.x3d'/> |
19 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
20 | <meta name='license' content='../license.html'/> |
21 | </head> |
22 | <Scene> |
23 | <WorldInfo title='CadGeometryExternPrototypes.x3d'/> |
24 | <ExternProtoDeclare name='IndexedQuadSet' appinfo='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_index' type='MFInt32' accessType='inputOnly'/> |
26 |
<field name='color' type='SFNode' accessType='inputOutput'
appinfo='[X3DColorNode]'/> |
27 |
<field name='coord' type='SFNode' accessType='inputOutput'
appinfo='[X3DCoordinateNode]'/> |
28 |
<field name='fogCoord' type='SFNode' accessType='inputOutput'
appinfo='[FogCoordinate]'/> |
29 |
<field name='normal' type='SFNode' accessType='inputOutput'
appinfo='[X3DNormalNode]'/> |
30 |
<field name='texCoord' type='SFNode' accessType='inputOutput'
appinfo='[X3DTextureCoordinateNode]'/> |
31 | <field name='ccw' type='SFBool' accessType='initializeOnly'/> |
32 | <field name='colorPerVertex' type='SFBool' accessType='initializeOnly'/> |
33 | <field name='normalPerVertex' type='SFBool' accessType='initializeOnly'/> |
34 | <field name='solid' type='SFBool' accessType='initializeOnly'/> |
35 | <field name='index' type='MFInt32' accessType='initializeOnly'/> |
36 | <field name='metadata' type='SFNode' accessType='inputOutput'/> |
37 | </ExternProtoDeclare> |
38 | <!-- =========================================== --> |
39 | <ExternProtoDeclare name='QuadSet' appinfo='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='attrib' type='MFNode' accessType='inputOutput'
appinfo='[X3DVertexAttributeNode]'/> |
41 |
<field name='color' type='SFNode' accessType='inputOutput'
appinfo='[X3DColorNode]'/> |
42 |
<field name='coord' type='SFNode' accessType='inputOutput'
appinfo='[X3DCoordinateNode]'/> |
43 |
<field name='fogCoord' type='SFNode' accessType='inputOutput'
appinfo='[FogCoordinate]'/> |
44 |
<field name='normal' type='SFNode' accessType='inputOutput'
appinfo='[X3DNormalNode]'/> |
45 |
<field name='texCoord' type='SFNode' accessType='inputOutput'
appinfo='[X3DTextureCoordinateNode]'/> |
46 | <field name='ccw' type='SFBool' accessType='initializeOnly'/> |
47 | <field name='colorPerVertex' type='SFBool' accessType='initializeOnly'/> |
48 | <field name='normalPerVertex' type='SFBool' accessType='initializeOnly'/> |
49 | <field name='solid' type='SFBool' accessType='initializeOnly'/> |
50 | <field name='metadata' type='SFNode' accessType='inputOutput'/> |
51 | </ExternProtoDeclare> |
52 | <!-- ======================================== --> |
53 | <ExternProtoDeclare name='CADLayer' appinfo='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='addChildren' type='MFNode' accessType='inputOnly'/> |
55 | <field name='removeChildren' type='MFNode' accessType='inputOnly'/> |
56 | <field name='children' type='MFNode' accessType='inputOutput'/> |
57 | <field name='name' type='SFString' accessType='inputOutput'/> |
58 | <field name='visible' type='MFBool' accessType='inputOutput'/> |
59 | <field name='bboxCenter' type='SFVec3f' accessType='initializeOnly'/> |
60 | <field name='bboxSize' type='SFVec3f' accessType='initializeOnly'/> |
61 | <field name='metadata' type='SFNode' accessType='inputOutput'/> |
62 | </ExternProtoDeclare> |
63 | <!-- ======================================== --> |
64 | <ExternProtoDeclare name='CADAssembly' appinfo='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='addChildren' type='MFNode' accessType='inputOnly'/> |
66 | <field name='removeChildren' type='MFNode' accessType='inputOnly'/> |
67 | <field name='children' type='MFNode' accessType='inputOutput'/> |
68 | <field name='name' type='SFString' accessType='inputOutput'/> |
69 | <field name='bboxCenter' type='SFVec3f' accessType='initializeOnly'/> |
70 | <field name='bboxSize' type='SFVec3f' accessType='initializeOnly'/> |
71 | <field name='metadata' type='SFNode' accessType='inputOutput'/> |
72 | </ExternProtoDeclare> |
73 | <!-- ======================================== --> |
74 | <ExternProtoDeclare name='CADPart' appinfo='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='addChildren' type='MFNode' accessType='inputOnly'/> |
76 | <field name='removeChildren' type='MFNode' accessType='inputOnly'/> |
77 | <field name='children' type='MFNode' accessType='inputOutput'/> |
78 | <field name='name' type='SFString' accessType='inputOutput'/> |
79 | <field name='translation' type='SFVec3f' accessType='inputOutput'/> |
80 | <field name='rotation' type='SFRotation' accessType='inputOutput'/> |
81 | <field name='center' type='SFVec3f' accessType='inputOutput'/> |
82 | <field name='scale' type='SFVec3f' accessType='inputOutput'/> |
83 | <field name='scaleOrientation' type='SFRotation' accessType='inputOutput'/> |
84 | <field name='bboxCenter' type='SFVec3f' accessType='initializeOnly'/> |
85 | <field name='bboxSize' type='SFVec3f' accessType='initializeOnly'/> |
86 | <field name='metadata' type='SFNode' accessType='inputOutput'/> |
87 | </ExternProtoDeclare> |
88 | <!-- ======================================== --> |
89 | <ExternProtoDeclare name='CADFace' appinfo='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='name' type='SFString' accessType='inputOutput'/> |
91 | <field name='shape' type='SFNode' accessType='inputOutput'/> |
92 | <field name='bboxCenter' type='SFVec3f' accessType='initializeOnly'/> |
93 | <field name='bboxSize' type='SFVec3f' accessType='initializeOnly'/> |
94 | <field name='metadata' type='SFNode' accessType='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 | |
112 | <Material diffuseColor='1 1 1'/> |
113 | </Appearance> |
114 | <ProtoInstance name='IndexedQuadSet' containerField='geometry'> |
115 | <fieldValue name='index' value='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='QuadSet' containerField='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='false' height='0.000001' radius='0.000001' side='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 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. |
<!--
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>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->