Skip to main content
Version: 0.12.0 (latest)

UeLineSegmentsGeometry

Represents a series of individual line segments, each defined by a pair of 3D points. This class is useful for drawing disconnected line pairs, such as wireframes or outlines.

Constructor​

new UeLineSegmentsGeometry(data = {})

Inherits from UeGeometry

Data properties​

PropertyTypeDescription
colorColorLines color
alphanumberLines transparency

Properties​

PropertyTypeDescription
colorColorLines color
alphanumberLines transparency

Methods​

MethodReturnsDescription
setPositions(array)selfPopulates the geometry with vertex pairs. Each 6 values represent two 3D points (x1,y1,z1,x2,y2,z2).
setColors(array)selfSets the per-vertex color for each segment. Every 6 values represent RGB for the two points.
fromMesh(mesh)selfExtracts vertex pairs from a UeMesh geometry (non-indexed)