Post

ArcClose2D

Overview

ArcClose2D is a polygonal geometry node that defines a linear circular arc, closed by PIE or CHORD line segments, with center (0,0) in X-Y plane, with angles measured starting at positive x-axis and sweeping towards positive y-axis.

The ArcClose2D 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
    + ArcClose2D

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

SFString [ ] closureType “PIE” [“PIE”|”CHORD”]

Defines whether pair of line segments connect to center (PIE), or single line-segment chord connects arc endpoints (CHORD).

Warning

  • Simple-geometry parameters cannot be changed after initial creation.

SFFloat [ ] startAngle 0 [-2π,2π]

Arc extends from startAngle counterclockwise to endAngle, in radians.

Hints

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

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.

SFBool [ ] solid FALSE

Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).

Hints

  • Mnemonic “this geometry is solid like a brick” (you don’t render the inside of a brick).
  • If in doubt, use solid=’false’ for maximum visibility.
  • AccessType relaxed to inputOutput in order to support animation and visualization.

Warnings

  • Default value true can completely hide geometry if viewed from wrong side!
  • solid false not supported in VRML97.

Advice

Hint

Warning

Example

See Also

This post is licensed under CC BY 4.0 by the author.