Difference between revisions of "Arc2D"

From Web3D.org
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==Arc2D==
 
==Arc2D==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geometry2D.html#Arc2D Arc2D]
  
 
<pre>
 
<pre>
Line 11: Line 13:
 
</pre>
 
</pre>
  
<p>The Arc node specifies a linear circular arc 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 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.</p>
+
==DTD Validation==
<center>http://www.web3d.org/x3d/specifications/ISO-IEC-19775-X3DAbstractSpecification/Images/Arc2DNode.gif<br>Figure 1 - Arc2D node depiction</center>
+
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
 
 +
===Attributes===
 +
 
 +
* 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:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
 
 +
===Attributes===
 +
 
 +
* There ''endAngle'' field is restricted to values between &plusmn;6.283185307.
 +
* There ''radius'' field is restricted to non-negative values, i.e. greater than zero.
 +
* There ''startAngle'' field is restricted to values between &plusmn;6.283185307.
 +
 
 +
==Schematron validation==
 +
 
 +
TBD
 +
 
 
* [[Node Reference]]
 
* [[Node Reference]]

Latest revision as of 09:40, 24 April 2015

Arc2D

Specification Link: Arc2D

Arc2D : X3DGeometryNode { 
  SFNode  [in,out] metadata   NULL  [X3DMetadataObject]
  SFFloat []       endAngle   π/2   [-2π,2π]
  SFFloat []       radius     1     (0,∞)
  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

  • 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

  • There endAngle field is restricted to values between ±6.283185307.
  • There radius field is restricted to non-negative values, i.e. greater than zero.
  • There startAngle field is restricted to values between ±6.283185307.

Schematron validation

TBD