MeshLine

A special mesh containing geometry for drawing lines. Intended to use with the MeshLineMaterial material. Capable of creating geometry from Geometry and Array/Float32Array data, for BufferGeometry use MeshLineIndexed instead.

Constructor

MeshLine()

Properties

.geometry : BufferGeometry

The line's geometry to pass into the Mesh constructor. Created after calling the setGeometry method.

Methods

.setGeometry (geometry, widthCallback) : null

Build the line's geometry from the given Geometry or Array/Float32Array data. widthCallback can be used to control the width at each point along the line. Its parameter p varies from 0 to 1 along the line: line.setGeometry(geometry, function(p) { return p; });