LineSegments.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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:Line] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">A series of lines drawn between pairs of vertices.</div>
  14. <h2>Constructor</h2>
  15. <h3>[name]( [page:Geometry geometry], [page:Material material] )</h3>
  16. <div>
  17. geometry — Pair(s) of vertices representing each line segment(s).<br />
  18. material — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].
  19. </div>
  20. <div>If no material is supplied, a randomized line material will be created and assigned to the object.</div>
  21. <h2>Properties</h2>
  22. <h3>[property:Geometry geometry]</h3>
  23. <div>
  24. Pair(s) of vertices representing the line segment(s).
  25. </div>
  26. <h3>[property:Material material]</h3>
  27. <div>
  28. Material for the line.
  29. </div>
  30. <h2>Methods</h2>
  31. <h3>[method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )</h3>
  32. <div>
  33. Get intersections between a casted ray and this Line. [page:Raycaster.intersectObject] will call this method.
  34. </div>
  35. <h3>[method:LineSegments clone]()</h3>
  36. <div>
  37. Returns a clone of this LineSegments object and its descendants.
  38. </div>
  39. <h2>Source</h2>
  40. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  41. </body>
  42. </html>