LineSegments.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. [page:Line] &rarr;
  11. <h1>[name]</h1>
  12. <div class="desc">A series of lines.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]( [page:Geometry geometry], [page:Material material] )</h3>
  15. <div>
  16. geometry — Vertices representing the line segment(s).<br />
  17. material — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].
  18. </div>
  19. <div>If no material is supplied, a randomized line material will be created and assigned to the object.</div>
  20. <h2>Properties</h2>
  21. <h3>[property:Geometry geometry]</h3>
  22. <div>
  23. Vertices representing the line segment(s).
  24. </div>
  25. <h3>[property:Material material]</h3>
  26. <div>
  27. Material for the line.
  28. </div>
  29. <h2>Methods</h2>
  30. <h3>[method:Array raycast]([page:Raycaster raycaster], [page:Array intersects])</h3>
  31. <div>
  32. Get intersections between a casted ray and this Line. [page:Raycaster.intersectObject] will call this method.
  33. </div>
  34. <h3>[method:Object3D clone]([page:Object3D object])</h3>
  35. <div>
  36. object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned LineSegments Object.
  37. </div>
  38. <div>
  39. Clone a LineSegments Object.
  40. </div>
  41. <h2>Source</h2>
  42. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  43. </body>
  44. </html>