LineLoop.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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
  15. rendered using
  16. [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINE_LOOP] instead of
  17. [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
  19. connects the last vertex back to the first.
  20. </p>
  21. <h2>Constructor</h2>
  22. <h3>
  23. [name]( [param:BufferGeometry geometry], [param:Material material] )
  24. </h3>
  25. <p>
  26. [page:BufferGeometry geometry] — List of vertices representing points on
  27. the line loop.<br />
  28. [page:Material material] — Material for the line. Default is
  29. [page:LineBasicMaterial LineBasicMaterial].
  30. </p>
  31. <h2>Properties</h2>
  32. <p>See the base [page:Line] class for common properties.</p>
  33. <h3>[property:Boolean isLineLoop]</h3>
  34. <p>Read-only flag to check if a given object is of type [name].</p>
  35. <h2>Methods</h2>
  36. <p>See the base [page:Line] class for common methods.</p>
  37. <h2>Source</h2>
  38. <p>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </p>
  41. </body>
  42. </html>