LineSegments.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Object3D] &rarr; [page:Line] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">
  14. A series of lines drawn between pairs of vertices.<br /><br />
  15. This is nearly the same as [page:Line]; the only difference is that it is rendered using
  16. [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINES]
  17. instead of [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINE_STRIP].
  18. </p>
  19. <h2>Constructor</h2>
  20. <h3>[name]( [param:Geometry geometry], [param:Material material] )</h3>
  21. <p>
  22. [page:Geometry geometry] — Pair(s) of vertices representing each line segment(s).<br />
  23. [page:Material material] — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].
  24. </p>
  25. <p>If no material is supplied, a randomized line material will be created and assigned to the object.</p>
  26. <h2>Properties</h2>
  27. <p>See the base [page:Line] class for common properties.</p>
  28. <h3>[property:Boolean isLineSegments]</h3>
  29. <p>
  30. Used to check whether this or derived classes are line segments. Default is *true*.<br /><br />
  31. You should not change this, as it used internally for optimisation.
  32. </p>
  33. <h2>Methods</h2>
  34. <p>See the base [page:Line] class for common methods.</p>
  35. <h2>Source</h2>
  36. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  37. </body>
  38. </html>