LineLoop.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. <p>If no material is supplied, a randomized line material will be created and assigned to the object.</p>
  27. <h2>Properties</h2>
  28. <p>See the base [page:Line] class for common properties.</p>
  29. <h3>[property:Boolean isLineLoop]</h3>
  30. <p>
  31. Used to check whether this or derived classes are line loops. Default is *true*.<br /><br />
  32. You should not change this, as it used internally for optimisation.
  33. </p>
  34. <h2>Methods</h2>
  35. <p>See the base [page:Line] class for common methods.</p>
  36. <h2>Source</h2>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </body>
  39. </html>