LineSegments.html 1.4 KB

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