[page:Line] →

[name]

A series of lines drawn between pairs of vertices.

Constructor

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

geometry — Pair(s) of vertices representing each line segment(s).
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

[property:Geometry geometry]

Pair(s) of vertices representing the line segment(s).

[property:Material material]

Material for the line.

Methods

[method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )

Get intersections between a casted ray and this Line. [page:Raycaster.intersectObject] will call this method.

[method:LineSegments clone]()

Returns a clone of this LineSegments object and its descendants.

Source

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