Skip to main content
Version: 0.10.0

UeLineGeometry

A chain of vertices connected together, forming a polyline.

Constructor​

new UeLineSegmentsGeometry(data = {})

Inherits from UeLineGeometry

Data properties​

PropertyTypeDescription
colorColorLine color
alphanumberLine transparency

Properties​

PropertyTypeDescription
colorColorLine color
alphanumberLine transparency

Methods​

MethodReturnsDescription
setPositions(array)selfPopulates the geometry with 3D vertices. Each 3 values represent x, y, z.
setColors(array)selfSets the per-vertex color. Each 3 values represent r, g, b.
setFromPoints(points)selfFills geometry with an array of UeVector3 or UeVector2 points.
fromLine(line)selfCopies vertex data from a UeLine object (non-indexed).