Post

Polyline2D

Polyline2D

Overview

Polyline2D is a geometry node that defines a connected set of vertices in a contiguous set of line segments in X-Y plane.

The Polyline2D node belongs to the Geometry2D component and requires at least level 1, its default container field is geometry. It is available from X3D version 3.0 or higher.

Hierarchy

1
2
3
+ X3DNode
  + X3DGeometryNode
    + Polyline2D

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

MFVec2f [ ] lineSegments [ ] (-∞,∞)

Coordinates of vertices connected into contiguous Polyline2D.

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

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.

Example

See Also

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