Difference between revisions of "CADAssembly"

From Web3D.org
Jump to: navigation, search
 
 
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==CADAssembly==
 
==CADAssembly==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/CADGeometry.html#CADAssembly CADAssembly]
  
 
<pre>
 
<pre>
Line 13: Line 15:
 
}
 
}
 
</pre>
 
</pre>
The CADAssembly node holds a set of assemblies or parts grouped together.
 
  
 +
==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.
 +
##[[CADAssembly]]
 +
##[[CADPart]]
 +
##[[Anchor]]
 +
##[[Billboard]]
 +
##[[Collision]]
 +
##[[Group]]
 +
##[[Inline]]
 +
##[[LOD]]
 +
##[[Transform]]
 +
##[[DirectionalLight]]
 +
##[[NavigationInfo]]
 +
##[[OrthoViewpoint]]
 +
##[[Viewpoint]]
 +
##[[ViewpointGroup]]
 +
##[[WorldInfo]]
 +
 +
NOTE: The above list is very different from what the specification permits. 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.
 +
##[[CADAssembly]]
 +
##[[CADPart]]
 +
##[[Anchor]]
 +
##[[Billboard]]
 +
##[[Collision]]
 +
##[[Group]]
 +
##[[Inline]]
 +
##[[LOD]]
 +
##[[Transform]]
 +
##[[DirectionalLight]]
 +
##[[NavigationInfo]]
 +
##[[OrthoViewpoint]]
 +
##[[Viewpoint]]
 +
##[[ViewpointGroup]]
 +
##[[WorldInfo]]
 +
 +
NOTE: The above list is very different from what the specification permits. This has been raised and is awaiting resolution.
 +
 +
===Attributes===
  
The ''children'' field can contain X3DProductStructureChildNode types. Each child will be either a sub-assembly or a part.
+
* 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==
  
The ''name'' field documents the name of this CADAssembly.
+
TBD
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Latest revision as of 07:34, 30 April 2015

CADAssembly

Specification Link: CADAssembly

CADAssembly : X3DGroupingNode, X3DProductStructureChildNode {
  MFNode   [in]     addChildren
  MFNode   [in]     removeChildren
  MFNode   [in,out] children       []       [X3DProductStructureChildNode]
  SFNode   [in,out] metadata       NULL     [X3DMetadataObject]
  SFString [in,out] name ""
  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. CADAssembly
    2. CADPart
    3. Anchor
    4. Billboard
    5. Collision
    6. Group
    7. Inline
    8. LOD
    9. Transform
    10. DirectionalLight
    11. NavigationInfo
    12. OrthoViewpoint
    13. Viewpoint
    14. ViewpointGroup
    15. WorldInfo

NOTE: The above list is very different from what the specification permits. 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. CADAssembly
    2. CADPart
    3. Anchor
    4. Billboard
    5. Collision
    6. Group
    7. Inline
    8. LOD
    9. Transform
    10. DirectionalLight
    11. NavigationInfo
    12. OrthoViewpoint
    13. Viewpoint
    14. ViewpointGroup
    15. WorldInfo

NOTE: The above list is very different from what the specification permits. 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