CADPart

From Web3D.org
Jump to: navigation, search

CADPart

Specification Link: CADPart

CADPart : X3DGroupingNode, X3DProductStructureChildNode {
  MFNode     [in]     addChildren
  MFNode     [in]     removeChildren
  MFNode     [in,out] children       []       [CADFace]
  SFVec3f    [in,out] center           0 0 0    (-∞,∞)
  SFNode     [in,out] metadata NULL  [X3DMetadataObject]
  SFString   [in,out] name ""
  SFRotation [in,out] rotation         0 0 1 0  [-1,1] or (-∞,∞)
  SFVec3f    [in,out] scale            1 1 1    (0,∞)
  SFRotation [in,out] scaleOrientation 0 0 1 0  [-1,1] or (-∞,∞)
  SFVec3f    [in,out] translation      0 0 0    (-∞,∞)
  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. A single, optional CADFace or appropriately derived Prototype node.

Attributes

There is no validation of the numerical values of the rotation or scaleOrientation fields. Neither is there any validation of the number of values.

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. A single, optional CADFace or appropriately derived Prototype node.

Attributes

  • The rotation field accepts a quadruplet of values. The Schema aims to limit the each of the first three values to the range -1 to +1 inclusive.
  • The scaleOrientation field accepts a quadruplet of values. The Schema aims to limit the each of the first three values to the range -1 to +1 inclusive.
  • 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.

Note: Issues with the validation of the rotation and scaleOrientation fields have been reported and resolution is awaited.

Schematron Validation

TBD