Line.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [page:Object3D] →
  2. <h1>[name]</h1>
  3. <div class="desc">A line or a series of lines.</div>
  4. <h2>Constructor</h2>
  5. <h3>[name]( [page:Geometry geometry], [page:Material material], [page:Integer type] )</h3>
  6. <div>
  7. geometry — Vertices representing the line segment(s).<br />
  8. material — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].<br />
  9. type — Connection type between vertices. Default is LineStrip.
  10. </div>
  11. <div>If no material is supplied, a randomized line material will be created and assigned to the object.</div>
  12. <div>Also, if no type is supplied, the default (LineStrip) will be used).</div>
  13. <h2>Properties</h2>
  14. <h3>.[page:Geometry geometry]</h3>
  15. <div>
  16. Vertices representing the line segment(s).
  17. </div>
  18. <h3>.[page:Material material]</h3>
  19. <div>
  20. Material for the line.
  21. </div>
  22. <h3>.[page:Integer type]</h3>
  23. <div>
  24. Possible values: LineStrip or LinePieces. LineStrip will draw a series of segments connecting each point (first connected to the second, the second connected to the third, and so on and so forth); and LinePieces will draw a series of pairs of segments (first connected to the second, the third connected to the fourth, and so on and so forth).</div>
  25. <div>
  26. In OpenGL terms, LineStrip is the classic GL_LINE_STRIP and LinePieces is the equivalent to GL_LINES.
  27. </div>
  28. <h2>Source</h2>
  29. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]