[page:Object3D] →

# [name]

A line or a series of lines.

## Constructor

### [name]( [page:Geometry geometry], [page:Material material], [page:Integer type] )

geometry — Vertices representing the line segment(s).
material — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].
type — Connection type between vertices. Default is LineStrip.
If no material is supplied, a randomized line material will be created and assigned to the object.
Also, if no type is supplied, the default (LineStrip) will be used).

## Properties

### .[page:Geometry geometry]

Vertices representing the line segment(s).

### .[page:Material material]

Material for the line.

### .[page:Integer type]

Possible values: LineStrip or LinePieces. LineStrip will draw a series of segments connecting each point (first connected to the second, the second connected to the third, and so on and so forth); and LinePieces will draw a series of pairs of segments (first connected to the second, the third connected to the fourth, and so on and so forth).
In OpenGL terms, LineStrip is the classic GL_LINE_STRIP and LinePieces is the equivalent to GL_LINES.

## Source

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