Arc2D
Overview
Arc2D is a line-based geometry node that defines a linear circular arc with center (0,0) in X-Y plane, with angles measured starting at positive x-axis and sweeping towards positive y-axis.
The Arc2D node belongs to the Geometry2D component and requires at least level 2, its default container field is geometry. It is available from X3D version 3.0 or higher.
Hierarchy
1
2
3
+ X3DNode
+ X3DGeometryNode
+ Arc2D
Fields
SFNode [in, out] metadata NULL [X3DMetadataObject]
Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
Hint
SFFloat [ ] startAngle 0 [-2π,2π]
Arc extends from startAngle counterclockwise to endAngle, in radians.
Hints
- For size animation, modify the scale of a parent/ancestor Transform node instead.
- Radian units for angular measure
Warning
- Simple-geometry dimensions are initializeOnly and cannot be changed after initial creation, avoiding the need for potentially expensive tessellation at run time.
SFFloat [ ] endAngle π/2 [-2π,2π]
Arc extends from startAngle counterclockwise to endAngle, in radians.
Hints
- For size animation, modify the scale of a parent/ancestor Transform node instead.
- Radian units for angular measure
Warning
- Simple-geometry dimensions are initializeOnly and cannot be changed after initial creation, avoiding the need for potentially expensive tessellation at run time.
SFFloat [ ] radius 1 (0,∞)
Circle radius, of which the arc is a portion.
Hint
- For size animation, modify the scale of a parent/ancestor Transform node instead.
Warning
- Simple-geometry dimensions are initializeOnly and cannot be changed after initial creation, avoiding the need for potentially expensive tessellation at run time.
Advice
Hints
- Material emissiveColor in corresponding Appearance is used for rendering lines.
- Adding LineProperties to the corresponding Appearance node can modify the rendering style of these lines.
- Insert a Shape node before adding geometry or Appearance.
Warnings
- Lines are not lit, are not texture-mapped, and do not participate in collision detection.
- Use a different Material emissiveColor than the Background color, otherwise geometry is invisible.
- Requires X3D
profile='Full'
or else include<component name='Geometry2D' level='2'/>
Examples: X3D Example Archives, X3D for Web Authors, Chapter 10 Geometry 2D
Example
See Also
This post is licensed under CC BY 4.0 by the author.