LineLoop.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. <h3>[property:Boolean isLineLoop]</h3>
  28. <p>
  29. Read-only flag to check if a given object is of type [name].
  30. </p>
  31. <h2>Methods</h2>
  32. <p>See the base [page:Line] class for common methods.</p>
  33. <h2>Source</h2>
  34. <p>
  35. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  36. </p>
  37. </body>
  38. </html>