<head>
</head>
<!--
<!--
Event Graph ROUTE Table
shows event connections
-->
<!--
Index for DEF nodes:
HoldMFBoolFieldScript,
HoldShapeNodeScript,
IndexedQuadSetToIndexedFaceSet,
QuadSetToIndexedFaceSet,
RenderedIQS,
RenderedQS,
UnrenderedIQS,
UnrenderedQS,
White
Index for ProtoDeclare definitions:
CADAssembly,
CADFace,
CADLayer,
CADPart,
IndexedQuadSet,
QuadSet,
ShapeHolder
-->
<Scene>
<!-- =========================================== -->
<WorldInfo title='CadGeometryPrototypes.x3d'/>
<ProtoDeclare 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
'
>
<ProtoInterface>
<field name='set_index' type='MFInt32' accessType='inputOnly'
appinfo='range [0..∞) or -1'
>
<!-- No specific initialization value -->
</field>
<field name='attrib' type='MFNode' accessType='inputOutput'
appinfo='[X3DVertexAttributeNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='color' type='SFNode' accessType='inputOutput'
appinfo='[X3DColorNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='coord' type='SFNode' accessType='inputOutput'
appinfo='[X3DCoordinateNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='fogCoord' type='SFNode' accessType='inputOutput'
appinfo='[FogCoordinate]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='normal' type='SFNode' accessType='inputOutput'
appinfo='[X3DNormalNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='texCoord' type='SFNode' accessType='inputOutput'
appinfo='[X3DTextureCoordinateNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='ccw' type='SFBool' value='true' accessType='initializeOnly'/>
<field name='colorPerVertex' type='SFBool' value='true' accessType='initializeOnly'
appinfo='colorPerVertex ignored in IndexedQuadSet, and always treated as true'
/>
<field name='normalPerVertex' type='SFBool' value='true' accessType='initializeOnly'/>
<field name='solid' type='SFBool' value='true' accessType='initializeOnly'/>
<field name='index' type='MFInt32' accessType='initializeOnly'
appinfo='range [0..∞) or -1'
>
<!-- No specific initialization value -->
</field>
<field name='metadata' type='SFNode' accessType='inputOutput'
appinfo='[X3DMetadataObject]'
>
<!-- Specification initialization: NULL node -->
</field>
</ProtoInterface>
<ProtoBody>
<IndexedFaceSet DEF='RenderedIQS'>
<IS>
<connect nodeField='attrib' protoField='attrib'/>
<connect nodeField='color' protoField='color'/>
<connect nodeField='colorPerVertex' protoField='colorPerVertex'/>
<connect nodeField='coord' protoField='coord'/>
<connect nodeField='fogCoord' protoField='fogCoord'/>
<connect nodeField='normal' protoField='normal'/>
<connect nodeField='texCoord' protoField='texCoord'/>
<connect nodeField='ccw' protoField='ccw'/>
<connect nodeField='normalPerVertex' protoField='normalPerVertex'/>
<connect nodeField='solid' protoField='solid'/>
</IS>
</IndexedFaceSet>
<!-- Initial node in the PROTO body is actual node type, and the only node rendered. Remaining ProtoBody nodes not rendered -->
<Group DEF='UnrenderedIQS'>
<Script DEF='IndexedQuadSetToIndexedFaceSet' directOutput='true'>
<field name='index' type='MFInt32' accessType='initializeOnly'/>
<field name='set_index' type='MFInt32' accessType='inputOnly'/>
<field name='renderedIQS' type='SFNode' accessType='initializeOnly'>
</field>
<field name='localTraceEnabled' type='SFBool' value='true' accessType='initializeOnly'/>
<field name='coordIndexNew' type='MFInt32' accessType='initializeOnly'>
<!-- constructed during initialization -->
</field>
<IS>
<connect nodeField='index' protoField='index'/>
<connect nodeField='set_index' protoField='set_index'/>
</IS>
<![CDATA[
ecmascript:
function initialize()
{
//colorPerVertex ignored in IndexedQuadSet, and always treated as "true"
RenderedIQS.colorPerVertex = true;
// index is an array of quad indices. The ordering of
// the vertices is ccw (counter-clockwise).
// ensure legal index values
for (ii=0; ii <= index.length-1; ii++)
{
if (index[ii] < -1)
{
alwaysPrint ('error, index[' + ii + ']=' + index[ii] + ' is illegal value');
return;
}
}
tracePrint ('index.length=' + index.length);
tracePrint ('index=' + index);
if (index.length < 4)
{
alwaysPrint ('warning, index.length=' + index.length + ' insufficient to construct a quad, IQS ignored');
return;
}
coordIndexNew = new MFInt32 ();
// ii walks through index array,
// goal is to initialize coordIndexNew list to match quads
for (ii=0; ii <= index.length-1; ii+=4)
{
if ((index[ii] == index[ii+1]) || (index[ii] == index[ii+2]) || (index[ii] == index[ii+3]) ||
(index[ii+1] == index[ii+2]) || (index[ii+1] == index[ii+3]) ||
(index[ii+2] == index[ii+3]))
{
alwaysPrint ('index=' + index);
alwaysPrint ('error, pair of equal indices in quad');
return;
}
if (index[ii] >= 0)
{
// add another quad from latest 4 points of fan set to IQS
// order is ccw, i.e. in correct halfplane direction
// note: there is an implicit "malloc" here for the'length' element of the array
coordIndexNew [coordIndexNew.length] = index[ii];
coordIndexNew [coordIndexNew.length] = index[ii+1];
coordIndexNew [coordIndexNew.length] = index[ii+2];
coordIndexNew [coordIndexNew.length] = index[ii+3];
coordIndexNew [coordIndexNew.length] = -1;
}
if (index.length % 4 != 0) {
alwaysPrint ('error, index field does not contain a multiple of four coordinate values.');
alwaysPrint ('The remaining vertices shall be ignored');
return;
}
// incremental trace of array being built
tracePrint ('coordIndexNew=' + coordIndexNew);
}
renderedIQS.set_coordIndex = coordIndexNew;
tracePrint ('renderedIQS.coordIndex=' + renderedIQS.coordIndex);
// match colorIndex if any Color node exists
// if (nodesHolder.color)
// {
// if (nodesHolder.color.color.length > 0)
// {
// Could implement color count check here
// }
// }
// no need to set colorIndex since indexedFaceSet semantics handles this
}
function set_index (value, timestamp)
{
index = value;
initialize ();
}
function tracePrint(outputString)
{
if (localTraceEnabled)
Browser.println ('[IndexedQuadSet]' + outputString);
}
function alwaysPrint(outputString)
{
Browser.println ('[IndexedQuadSet]' + outputString);
}
]]>
</Script>
<Group>
<
MetadataString name='
metadataHolder'>
<IS>
<connect nodeField='metadata' protoField='metadata'/>
</IS>
</
MetadataString>
</Group>
</Group>
</ProtoBody>
</ProtoDeclare>
<!-- =========================================== -->
<ProtoDeclare 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
'
>
<ProtoInterface>
<field name='attrib' type='MFNode' accessType='inputOutput'
appinfo='[X3DVertexAttributeNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='color' type='SFNode' accessType='inputOutput'
appinfo='[X3DColorNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='coord' type='SFNode' accessType='inputOutput'
appinfo='[X3DCoordinateNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='fogCoord' type='SFNode' accessType='inputOutput'
appinfo='[FogCoordinate]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='normal' type='SFNode' accessType='inputOutput'
appinfo='[X3DNormalNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='texCoord' type='SFNode' accessType='inputOutput'
appinfo='[X3DTextureCoordinateNode]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='ccw' type='SFBool' value='true' accessType='initializeOnly'/>
<field name='colorPerVertex' type='SFBool' value='true' accessType='initializeOnly'
appinfo='colorPerVertex ignored in QuadSet, and always treated as true'
/>
<field name='normalPerVertex' type='SFBool' value='true' accessType='initializeOnly'/>
<field name='solid' type='SFBool' value='true' accessType='initializeOnly'/>
<field name='metadata' type='SFNode' accessType='inputOutput'
appinfo='[X3DMetadataObject]'
>
<!-- Specification initialization: NULL node -->
</field>
</ProtoInterface>
<ProtoBody>
<IndexedFaceSet DEF='RenderedQS'>
<IS>
<connect nodeField='attrib' protoField='attrib'/>
<connect nodeField='color' protoField='color'/>
<connect nodeField='colorPerVertex' protoField='colorPerVertex'/>
<connect nodeField='coord' protoField='coord'/>
<connect nodeField='fogCoord' protoField='fogCoord'/>
<connect nodeField='normal' protoField='normal'/>
<connect nodeField='texCoord' protoField='texCoord'/>
<connect nodeField='ccw' protoField='ccw'/>
<connect nodeField='normalPerVertex' protoField='normalPerVertex'/>
<connect nodeField='solid' protoField='solid'/>
</IS>
</IndexedFaceSet>
<!-- Initial node in the PROTO body is actual node type, and the only node rendered. Remaining ProtoBody nodes not rendered -->
<Group DEF='UnrenderedQS'>
<Script DEF='QuadSetToIndexedFaceSet' directOutput='true'>
<field name='index' type='MFInt32' accessType='initializeOnly'>
<!-- initialized in ecmascript -->
</field>
<field name='set_index' type='MFInt32' accessType='inputOnly'/>
<field name='renderedQS' type='SFNode' accessType='initializeOnly'>
</field>
<field name='localTraceEnabled' type='SFBool' value='true' accessType='initializeOnly'/>
<field name='coordIndexNew' type='MFInt32' accessType='initializeOnly'>
<!-- constructed during initialization -->
</field>
<![CDATA[
ecmascript:
function initialize()
{
//colorPerVertex ignored in QuadSet, and always treated as "true"
RenderedQS.colorPerVertex = true;
// calculate index value from QuadSet coord values
if (renderedQS.coord)
{
numberOfCoordinatePoints = renderedQS.coord.point.length;
}
else
{
tracePrint ('no Coordinate node found');
return;
}
if (numberOfCoordinatePoints < 4)
{
alwaysPrint ('warning, numberOfCoordinatePoints=' + numberOfCoordinatePoints + ' insufficient to construct a quad, QuadSet ignored');
return;
}
coordIndexNew = new MFInt32 ();
// ii walks through index array,
// goal is to initialize coordIndexNew list to match quads
for (ii=0; ii <= numberOfCoordinatePoints-1; ii+=4)
{
// check if at least 4 vertices remaining to build a quad
if ((numberOfCoordinatePoints - ii) < 4)
{
alwaysPrint ('error, index field does not contain a multiple' +
' of four coordinate values.');
alwaysPrint ('The remaining vertices shall be ignored');
return;
}
if ((index[ii] == index[ii+1]) || (index[ii] == index[ii+2]) || (index[ii] == index[ii+3]) ||
(index[ii+1] == index[ii+2]) || (index[ii+1] == index[ii+3]) ||
(index[ii+2] == index[ii+3]))
{
alwaysPrint ('index=' + index);
alwaysPrint ('error, pair of equal indices in quad');
return;
}
if (index[ii] >= 0)
{
// add another quad from latest 4 points of fan set to QS
// order is ccw, i.e. in correct halfplane direction
// note: there is an implicit "malloc" here for the'length' element of the array
coordIndexNew [coordIndexNew.length] = index[ii];
coordIndexNew [coordIndexNew.length] = index[ii+1];
coordIndexNew [coordIndexNew.length] = index[ii+2];
coordIndexNew [coordIndexNew.length] = index[ii+3];
coordIndexNew [coordIndexNew.length] = -1;
}
// incremental trace of array being built
tracePrint ('coordIndexNew=' + coordIndexNew);
}
renderedQS.set_coordIndex = coordIndexNew;
tracePrint ('renderedQS.coordIndex=' + renderedQS.coordIndex);
// match colorIndex if any Color node exists
// if (nodesHolder.color)
// {
// if (nodesHolder.color.color.length > 0)
// {
// Could implement color count check here
// }
// }
// no need to set colorIndex since indexedFaceSet semantics handles this
}
function set_index (value, timestamp)
{
index = value;
initialize ();
}
function tracePrint(outputString)
{
if (localTraceEnabled)
Browser.println ('[IndexedQuadSet]' + outputString);
}
function alwaysPrint(outputString)
{
Browser.println ('[IndexedQuadSet]' + outputString);
}
]]>
</Script>
<Group>
<
MetadataString name='
metadataHolder'>
<IS>
<connect nodeField='metadata' protoField='metadata'/>
</IS>
</
MetadataString>
</Group>
</Group>
</ProtoBody>
</ProtoDeclare>
<!-- ======================================== -->
<ProtoDeclare name='CADAssembly' appinfo='The CADAssembly node holds a set of assemblies or parts grouped together.'
>
<ProtoInterface>
<field name='addChildren' type='MFNode' accessType='inputOnly'/>
<field name='removeChildren' type='MFNode' accessType='inputOnly'/>
<field name='children' type='MFNode' accessType='inputOutput'
appinfo='The children field can contain X3DProductStructureChildNode types. Each child will be either a sub-assembly or a part.'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='name' type='SFString' accessType='inputOutput'
appinfo='The name field documents the name of this CADAssembly.'
/>
<field name='bboxCenter' type='SFVec3f' value='0 0 0' accessType='initializeOnly'
appinfo='Bounding box center: position offset from origin of local coordinate system.'
/>
<field name='bboxSize' type='SFVec3f' value='-1 -1 -1' accessType='initializeOnly'
appinfo='Bounding box size: automatically calculated can be specified as an optimization or constraint.'
/>
<field name='metadata' type='SFNode' accessType='inputOutput'
appinfo='[X3DMetadataObject]'
>
<!-- Specification initialization: NULL node -->
</field>
</ProtoInterface>
<ProtoBody>
<Group>
<IS>
<connect nodeField='addChildren' protoField='addChildren'/>
<connect nodeField='removeChildren' protoField='removeChildren'/>
<connect nodeField='children' protoField='children'/>
<connect nodeField='bboxCenter' protoField='bboxCenter'/>
<connect nodeField='bboxSize' protoField='bboxSize'/>
</IS>
</Group>
<Group>
<
MetadataString name='
metadataHolder'>
<IS>
<connect nodeField='metadata' protoField='metadata'/>
</IS>
</
MetadataString>
<!-- name holder -->
<Anchor
url='
"#hideWarning1" '
>
<IS>
<connect nodeField='description' protoField='name'/>
</IS>
</Anchor>
</Group>
</ProtoBody>
</ProtoDeclare>
<!-- ======================================== -->
<ProtoDeclare name='ShapeHolder' appinfo='local dummy node to hold value for CADFace'
>
<ProtoInterface>
<field name='shape' type='SFNode' accessType='inputOutput'>
<!-- no initialization value -->
</field>
</ProtoInterface>
<ProtoBody>
<Script DEF='HoldShapeNodeScript' directOutput='true'>
<field name='shape' type='SFNode' accessType='inputOutput'
appinfo='holder for IS field'
>
<!-- no initialization node -->
</field>
<IS>
<connect nodeField='shape' protoField='shape'/>
</IS>
<![CDATA[
ecmascript:
// no script code, this node is simply a container
// silence warning: no function provided that includes shape = something;
]]>
</ProtoDeclare>
<!-- = = = = = -->
<ProtoDeclare 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#CADPart
'
>
<ProtoInterface>
<field name='name' type='SFString' accessType='inputOutput'
appinfo='The name field documents the name of this CADFace.'
/>
<field name='shape' type='SFNode' accessType='inputOutput'
appinfo='[X3DShapeNode | LOD]'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='bboxCenter' type='SFVec3f' value='0 0 0' accessType='initializeOnly'
appinfo='Bounding box center: position offset from origin of local coordinate system.'
/>
<field name='bboxSize' type='SFVec3f' value='-1 -1 -1' accessType='initializeOnly'
appinfo='Bounding box size: automatically calculated can be specified as an optimization or constraint.'
/>
<field name='metadata' type='SFNode' accessType='inputOutput'
appinfo='[X3DMetadataObject]'
>
<!-- Specification initialization: NULL node -->
</field>
</ProtoInterface>
<ProtoBody>
<ProtoInstance name='ShapeHolder'>
<IS>
<connect nodeField='shape' protoField='shape'/>
</IS>
</ProtoInstance>
<Group>
<IS>
<connect nodeField='bboxCenter' protoField='bboxCenter'/>
<connect nodeField='bboxSize' protoField='bboxSize'/>
</IS>
<
MetadataString name='
metadataHolder'>
<IS>
<connect nodeField='metadata' protoField='metadata'/>
</IS>
</
MetadataString>
<!-- name holder -->
<Anchor
url='
"#hideWarning2" '
>
<IS>
<connect nodeField='description' protoField='name'/>
</IS>
</Anchor>
</Group>
</ProtoBody>
</ProtoDeclare>
<!-- ======================================== -->
<ProtoDeclare 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#CADPart
'
>
<ProtoInterface>
<field name='addChildren' type='MFNode' accessType='inputOnly'/>
<field name='removeChildren' type='MFNode' accessType='inputOnly'/>
<field name='children' type='MFNode' accessType='inputOutput'
appinfo='The children field can contain X3DChildNode types.'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='name' type='SFString' accessType='inputOutput'
appinfo='The name field documents the name of this CADLayer.'
/>
<field name='visible' type='MFBool' accessType='inputOutput'
appinfo='specifies whether a particular child and its subchildren are visible. If the number of values is less than the number of children the remaining children shall be visible.'
/>
<field name='bboxCenter' type='SFVec3f' value='0 0 0' accessType='initializeOnly'
appinfo='Bounding box center: position offset from origin of local coordinate system.'
/>
<field name='bboxSize' type='SFVec3f' value='-1 -1 -1' accessType='initializeOnly'
appinfo='Bounding box size: automatically calculated can be specified as an optimization or constraint.'
/>
<field name='metadata' type='SFNode' accessType='inputOutput'
appinfo='[X3DMetadataObject]'
>
<!-- Specification initialization: NULL node -->
</field>
</ProtoInterface>
<ProtoBody>
<Group>
<IS>
<connect nodeField='addChildren' protoField='addChildren'/>
<connect nodeField='removeChildren' protoField='removeChildren'/>
<connect nodeField='children' protoField='children'/>
<connect nodeField='bboxCenter' protoField='bboxCenter'/>
<connect nodeField='bboxSize' protoField='bboxSize'/>
</IS>
</Group>
<Group>
<
MetadataString name='
metadataHolder'>
<IS>
<connect nodeField='metadata' protoField='metadata'/>
</IS>
</
MetadataString>
<!-- name holder -->
<Anchor
url='
"#hideWarning3" '
>
<IS>
<connect nodeField='description' protoField='name'/>
</IS>
</Anchor>
</Group>
<Script DEF='HoldMFBoolFieldScript'>
<field name='visible' type='MFBool' accessType='inputOutput'>
<!-- no initialization node -->
</field>
<IS>
<connect nodeField='visible' protoField='visible'/>
</IS>
<![CDATA[
ecmascript:
// no script code, this node is simply a container
]]>
</Script>
<!-- No support for MFBool in VRML97, so no functionality provided for visible -->
</ProtoBody>
</ProtoDeclare>
<!-- ======================================== -->
<ProtoDeclare name='CADPart' appinfo='CADPart represents the location and faces that constitute apart'
documentation='
https://www.web3d.org/x3d/specifications/ISO-IEC-19775-Amendment1-PDAM-X3DAbstractSpecification/Part01/components/CadGeometry.html#CADPart
'
>
<ProtoInterface>
<field name='addChildren' type='MFNode' accessType='inputOnly'/>
<field name='removeChildren' type='MFNode' accessType='inputOnly'/>
<field name='children' type='MFNode' accessType='inputOutput'
appinfo='The children field can only contain CADFace nodes.'
>
<!-- Specification initialization: NULL node -->
</field>
<field name='name' type='SFString' accessType='inputOutput'/>
<field name='translation' type='SFVec3f' value='0 0 0' accessType='inputOutput'/>
<field name='rotation' type='SFRotation' value='0 0 1 0' accessType='inputOutput'/>
<field name='center' type='SFVec3f' value='0 0 0' accessType='inputOutput'/>
<field name='scale' type='SFVec3f' value='1 1 1' accessType='inputOutput'/>
<field name='scaleOrientation' type='SFRotation' value='0 0 1 0' accessType='inputOutput'/>
<field name='bboxCenter' type='SFVec3f' value='0 0 0' accessType='initializeOnly'/>
<field name='bboxSize' type='SFVec3f' value='-1 -1 -1' accessType='initializeOnly'/>
<field name='metadata' type='SFNode' accessType='inputOutput'
appinfo='[X3DMetadataObject]'
>
<!-- Specification initialization: NULL node -->
</field>
</ProtoInterface>
<ProtoBody>
<Transform>
<IS>
<connect nodeField='children' protoField='children'/>
<connect nodeField='addChildren' protoField='addChildren'/>
<connect nodeField='removeChildren' protoField='removeChildren'/>
<connect nodeField='translation' protoField='translation'/>
<connect nodeField='rotation' protoField='rotation'/>
<connect nodeField='center' protoField='center'/>
<connect nodeField='scale' protoField='scale'/>
<connect nodeField='scaleOrientation' protoField='scaleOrientation'/>
<connect nodeField='bboxCenter' protoField='bboxCenter'/>
<connect nodeField='bboxSize' protoField='bboxSize'/>
</IS>
</Transform>
<Group>
<
MetadataString name='
metadataHolder'>
<IS>
<connect nodeField='metadata' protoField='metadata'/>
</IS>
</
MetadataString>
<!-- name holder -->
<Anchor
url='
"#hideWarning4" '
>
<IS>
<connect nodeField='description' protoField='name'/>
</IS>
</Anchor>
</Group>
</ProtoBody>
</ProtoDeclare>
<!-- ======================================== -->
<Anchor description='CadGeometryExternPrototypes' parameter='"target=_blank"'
url='
CadGeometryExternPrototypes.x3d"https://www.web3d.org/x3d/content/examples/Basic/development/CadGeometryExternPrototypes.x3d" "CadGeometryExternPrototypes.wrl" "https://www.web3d.org/x3d/content/examples/Basic/development/CadGeometryExternPrototypes.wrl" '
>
<Shape>
<Text string='"CadGeometryExternPrototypes" "defines prototype examples" "" "Click text to see" "CadGeometryExternPrototypes"'>
<FontStyle justify='"MIDDLE" "MIDDLE"' size='0.9'/>
</Text>
<Appearance>
<Material diffuseColor='1 1 0.2'/>
</Appearance>
</Shape>
</Anchor>
<!-- ======================================== -->
<Transform translation='-3 2 0'>
<Shape>
<Appearance DEF='White'>
<Material diffuseColor='1 1 1'/>
</Appearance>
<ProtoInstance name='IndexedQuadSet' containerField='geometry'>
<fieldValue name='index' value='0 3 2 1 4 5 6 7 2 7 9 8 2 3 4 7'/>
<fieldValue name='coord'>
<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'/>
</fieldValue>
</ProtoInstance>
</Shape>
</Transform>
<Transform translation='3 2 0'>
<Shape>
<Appearance USE='
White'/>
<ProtoInstance name='QuadSet' containerField='geometry'>
<fieldValue name='coord'>
<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'/>
</fieldValue>
</ProtoInstance>
</Shape>
</Transform>
<!-- ======================================== -->
<!-- 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. -->
<ProtoInstance name='CADLayer'>
<fieldValue name='children'>
<ProtoInstance name='CADAssembly'>
<fieldValue name='children'>
<ProtoInstance name='CADPart'>
<fieldValue name='children'>
<ProtoInstance name='CADFace'>
<fieldValue name='shape'>
<Shape>
<Cylinder bottom='false' height='0.000001' radius='0.000001' side='false'/>
<Appearance>
<Material/>
</Appearance>
</Shape>
</fieldValue>
</ProtoInstance>
</fieldValue>
</ProtoInstance>
</fieldValue>
</ProtoInstance>
</fieldValue>
</ProtoInstance>
</Scene>