A special mesh containing geometry for drawing lines. Intended to use with the MeshLineMaterial material. Capable of creating geometry from Array/Float32Array data, for BufferGeometry use MeshLineIndexed instead.
The constructor takes no parameters.
The line's geometry to pass into the Mesh constructor. Created after calling the setGeometry method.
Build the line's geometry from the given BufferGeometry 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; });
For more info on how to obtain the source code of this module see this page.