1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Object3D] → [page:Line] →
<h1>[name]</h1>
<p class="desc">
A series of lines drawn between pairs of vertices.<br /><br />
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].
</p>
<h2>Constructor</h2>
<h3>[name]( [param:Geometry geometry], [param:Material material] )</h3>
<p>
[page:Geometry geometry] — Pair(s) of vertices representing each line segment(s).<br />
[page:Material material] — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].
</p>
<p>If no material is supplied, a randomized line material will be created and assigned to the object.</p>
<h2>Properties</h2>
<p>See the base [page:Line] class for common properties.</p>
<h3>[property:Boolean isLineSegments]</h3>
<p>
Used to check whether this or derived classes are line segments. Default is *true*.<br /><br />
You should not change this, as it used internally for optimisation.
</p>
<h2>Methods</h2>
<p>See the base [page:Line] class for common methods.</p>
<h2>Source</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>
|