LineLoop.html 1.4 KB

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