Arc2D

From Web3D.org
Revision as of 12:33, 19 April 2015 by Walroy (Talk | contribs)

Jump to: navigation, search

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.2832.
  • There radius field is restricted to non-negative values.
  • There startAngle field is restricted to values between ±6.2832.

Note: The value 6.2832 is fractionally larger than 2π. A more accurate value is 6.283185307. Implementations which internally check for the value exceeding 2π might report an error for a value above the accurate value but within the specification limits.

Schematron validation

TBD