LineLoop.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 continuous line that connects back to the start.<br /><br />
  14. This is nearly the same as [page:Line]; the only difference is that it is rendered using
  15. [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINE_LOOP]
  16. instead of [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINE_STRIP],
  17. which draws a straight line to the next vertex, and connects the last vertex back to the first.
  18. </p>
  19. <h2>Constructor</h2>
  20. <h3>[name]( [param:BufferGeometry geometry], [param:Material material] )</h3>
  21. <p>
  22. [page:BufferGeometry geometry] — List of vertices representing points on the line loop.<br />
  23. [page:Material material] — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].
  24. </p>
  25. <h2>Properties</h2>
  26. <p>See the base [page:Line] class for common properties.</p>
  27. <h2>Methods</h2>
  28. <p>See the base [page:Line] class for common methods.</p>
  29. <h2>Source</h2>
  30. <p>
  31. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  32. </p>
  33. </body>
  34. </html>