Difference between revisions of "Color"

From Web3D.org
Jump to: navigation, search
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==Color==
 
==Color==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#Color Color]
  
 
<pre>
 
<pre>
CADAssembly : X3DGroupingNode, X3DProductStructureChildNode {
+
Color : X3DColorNode {  
   MFNode  [in]     addChildren
+
   MFColor [in,out] color    []  [0,1]
  MFNode  [in]     removeChildren
+
   SFNode [in,out] metadata NULL [X3DMetadataObject]
  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
+
 
}
 
}
 
</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.
 +
 +
===Attributes===
 +
 +
* There is no check that the values of the ''color'' field are acceptable.
 +
 +
==Schema Validation==
 +
 +
===Children===
 +
 +
Children must appear as follows:
 +
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
 +
===Attributes===
  
The ''children'' field can contain X3DProductStructureChildNode types. Each child will be either a sub-assembly or a part.
+
* The Schema attempts to check that the values of the ''color'' field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.
  
 +
==Schematron validation==
  
The ''name'' field documents the name of this CADAssembly.
+
TBD
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Latest revision as of 06:57, 10 June 2015

Color

Specification Link: Color

Color : X3DColorNode { 
  MFColor [in,out] color    []   [0,1]
  SFNode  [in,out] metadata NULL [X3DMetadataObject]
}

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.

Attributes

  • There is no check that the values of the color field are acceptable.

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.

Attributes

  • The Schema attempts to check that the values of the color field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.

Schematron validation

TBD