[page:Object3D] → [page:Line] →

[name]

A series of lines drawn between pairs of vertices.

This is nearly the same as [page:Line]; the only difference is that it is rendered using [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINES] instead of [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINE_STRIP].

Constructor

[name]( [param:Geometry geometry], [param:Material material] )

[page:Geometry geometry] — Pair(s) of vertices representing each line segment(s).
[page:Material material] — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].

If no material is supplied, a randomized line material will be created and assigned to the object.

Properties

See the base [page:Line] class for common properties.

[property:Boolean isLineSegments]

Used to check whether this or derived classes are line segments. Default is *true*.

You should not change this, as it used internally for optimisation.

Methods

See the base [page:Line] class for common methods.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]