LineSegments.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.</div>
  14. <h2>Constructor</h2>
  15. <h3>[name]( [page:Geometry geometry], [page:Material material] )</h3>
  16. <div>
  17. geometry — Vertices representing the 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. 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:Object3D clone]([page:Object3D object])</h3>
  36. <div>
  37. object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned LineSegments Object.
  38. </div>
  39. <div>
  40. Clone a LineSegments Object.
  41. </div>
  42. <h2>Source</h2>
  43. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  44. </body>
  45. </html>