Difference between revisions of "CADFace"

From Web3D.org
Jump to: navigation, search
 
 
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==CADFace==
 
==CADFace==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/CADGeometry.html#CADFace CADFace]
  
 
<pre>
 
<pre>
CADFace : X3DProductStructureChildNode {
+
CADFace : X3DProductStructureChildNode, X3DBoundedObject {
   SFNode  [in,out] metadata NULL  [X3DMetadataObject]
+
   SFNode  [in,out] metadata   NULL  [X3DMetadataObject]
   SFString [in,out] name     ""
+
   SFString [in,out] name       ""
   SFNode  [in,out] shape   NULL  [X3DShapeNode | LOD]
+
   SFNode  [in,out] shape     NULL  [X3DShapeNode | LOD | Transform]
 +
  SFVec3f  []      bboxCenter 0 0 0    (-∞,∞)
 +
  SFVec3f  []      bboxSize  -1 -1 -1 [0,∞) or −1 −1 −1
 
}
 
}
 
</pre>
 
</pre>
  
The CADFace node holds the geometry representing a face of a part.
+
==DTD Validation==
 +
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
# Any number, including none, of Prototype nodes or nodes of the following types in any order.
 +
##[[Shape]]
 +
##[[LOD]]
 +
##[[Transform]]
 +
 
 +
NOTE: The DTD does not verify that if the child is a LOD or Transform node that it only contains a single Shape node.
 +
NOTE: The specification definition also allows the ParticleSystem node. This has been raised and is awaiting resolution.
 +
 
 +
===Attributes===
 +
 
 +
There is no validation of the numerical values of the ''bboxCenter'' or ''bboxSize'' fields. Neither is there any validation of the number of values.
 +
 
 +
==Schema Validation==
 +
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
# Any number, including none, of Prototype nodes or nodes of the following types in any order.
 +
##[[Shape]]
 +
##[[LOD]]
 +
##[[Transform]]
 +
 
 +
NOTE: The Schema does not verify that if the child is a LOD or Transform node that it only contains a single Shape node.
 +
NOTE: The specification definition also allows the ParticleSystem node. This has been raised and is awaiting resolution.
 +
 
 +
 
 +
===Attributes===
 +
 
 +
* The ''bboxCenter'' field accepts a triplet of numerical values.
 +
* The ''bboxsize'' field accepts either three values, each one being greater than or equal to zero, or the triplet -1 -1 -1.
  
The ''name'' field documents the name of this face.
+
==Schematron Validation==
  
The ''shape'' field contains the Shape node providing the geometry and appearance for the face or an LOD node containing different detail levels of the shape. If an LOD node is provided, each child of the LOD node shall be a single Shape of varying complexity.
+
TBD
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Latest revision as of 02:30, 1 May 2015

CADFace

Specification Link: CADFace

CADFace : X3DProductStructureChildNode, X3DBoundedObject {
  SFNode   [in,out] metadata   NULL  [X3DMetadataObject]
  SFString [in,out] name       ""
  SFNode   [in,out] shape      NULL  [X3DShapeNode | LOD | Transform]
  SFVec3f  []       bboxCenter 0 0 0    (-∞,∞)
  SFVec3f  []       bboxSize   -1 -1 -1 [0,∞) or −1 −1 −1
}

DTD Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.
  3. Any number, including none, of Prototype nodes or nodes of the following types in any order.
    1. Shape
    2. LOD
    3. Transform

NOTE: The DTD does not verify that if the child is a LOD or Transform node that it only contains a single Shape node. NOTE: The specification definition also allows the ParticleSystem node. This has been raised and is awaiting resolution.

Attributes

There is no validation of the numerical values of the bboxCenter or bboxSize fields. Neither is there any validation of the number of values.

Schema Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.
  3. Any number, including none, of Prototype nodes or nodes of the following types in any order.
    1. Shape
    2. LOD
    3. Transform

NOTE: The Schema does not verify that if the child is a LOD or Transform node that it only contains a single Shape node. NOTE: The specification definition also allows the ParticleSystem node. This has been raised and is awaiting resolution.


Attributes

  • The bboxCenter field accepts a triplet of numerical values.
  • The bboxsize field accepts either three values, each one being greater than or equal to zero, or the triplet -1 -1 -1.

Schematron Validation

TBD