Difference between revisions of "ArcClose2D"

From Web3D.org
Jump to: navigation, search
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
*[[Node Reference]]
 +
==ArcClose2D==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geometry2D.html#ArcClose2D ArcClose2D]
 +
 +
<pre>
 
ArcClose2D : X3DGeometryNode {  
 
ArcClose2D : X3DGeometryNode {  
 
   SFNode  [in,out] metadata    NULL  [X3DMetadataObject]
 
   SFNode  [in,out] metadata    NULL  [X3DMetadataObject]
Line 7: Line 13:
 
   SFFloat  []      startAngle  0    [-2π,2π]
 
   SFFloat  []      startAngle  0    [-2π,2π]
 
}
 
}
 +
</pre>
 +
 +
==DTD Validation==
 +
 +
===Children===
 +
 +
Children must appear as follows:
 +
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
 +
===Attributes===
 +
 +
* The ''closureType'' field can only accept one of the two values "PIE" or "CHORD".
 +
* There are no limits on the acceptable range of values for the ''endAngle'' field.
 +
* There are no limits on the acceptable range of values for the ''radius'' field.
 +
* There are no limits on the acceptable range of values for the ''startAngle'' field.
 +
 +
==Schema Validation==
 +
 +
===Children===
  
The ArcClose node specifies a portion of a circle whose center is at (0,0) and whose angles are measured starting at the positive x-axis and sweeping towards the positive y-axis. The end points of the arc specified are connected as defined by the closureType field. The radius field specifies the radius of the circle of which the arc is a portion. The arc extends from the startAngle counterclockwise to the endAngle. The value of radius shall be greater than zero. The values of startAngle and endAngle shall be in the range (0, 2π). If startAngle and endAngle have the same value, a circle is specified and closureType is ignored.
+
Children must appear as follows:
  
A closureType of "PIE" connects the end point to the start point by defining two straight line segments first from the end point to the center and then the center to the start point. This forms a pie wedge as shown in Figure 14.2.
+
# A single, optional IS.
ArcClose2D node pie closure
+
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
  
<center>http://www.web3d.org/x3d/specifications/ISO-IEC-19775-X3DAbstractSpecification/Images/ArcClose2DPie.gif<br>Figure 1 —�ArcClose2D node ("PIE" closure) depiction</center>
+
===Attributes===
  
A closureType of "CHORD" connects the end point to the start point by defining a straight line segment from the end point to the start point. This forms an arc segment as shown in Figure 14.3.
+
* The ''closureType'' field can only accept one of the two values "PIE" or "CHORD".
ArcClose2D node CHORD closure)
+
* There ''endAngle'' field is restricted to values between &plusmn;6.283185307.
 +
* There ''radius'' field is restricted to positive values, i.e. greater than zero.
 +
* There ''startAngle'' field is restricted to values between &plusmn;6.283185307.
  
<center>http://www.web3d.org/x3d/specifications/ISO-IEC-19775-X3DAbstractSpecification/Images/ArcClose2DChord.gif<br>Figure 2 —�ArcClose2D node ("CHORD" closure) depiction</center>
+
==Schematron validation==
  
Textures are applied individually to each face of the ArcClose2D. On the front (+Z) and back (-Z) faces of the ArcClose2D, when viewed from the +Z-axis, the texture is mapped onto each face with the same orientation as if the image were displayed normally in 2D. TextureTransform affects the texture coordinates of the ArcClose2D (see 18.4.9 TextureTransform).
+
TBD
  
11.2.3 Common geometry fields provides a complete description of the solid field.
+
*[[Node Reference]]

Latest revision as of 02:39, 24 April 2015

ArcClose2D

Specification Link: ArcClose2D

ArcClose2D : X3DGeometryNode { 
  SFNode   [in,out] metadata    NULL  [X3DMetadataObject]
  SFString []       closureType "PIE" ["PIE"|"CHORD"]
  SFFloat  []       endAngle    π/2   [-2π,2π]
  SFFloat  []       radius      1     (0,∞)
  SFBool   []       solid       FALSE
  SFFloat  []       startAngle  0     [-2π,2π]
}

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

  • The closureType field can only accept one of the two values "PIE" or "CHORD".
  • There are no limits on the acceptable range of values for the endAngle field.
  • There are no limits on the acceptable range of values for the radius field.
  • There are no limits on the acceptable range of values for the startAngle field.

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 closureType field can only accept one of the two values "PIE" or "CHORD".
  • There endAngle field is restricted to values between ±6.283185307.
  • There radius field is restricted to positive values, i.e. greater than zero.
  • There startAngle field is restricted to values between ±6.283185307.

Schematron validation

TBD