Points.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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;
  12. <h1>[name]</h1>
  13. <div class="desc">A class for displaying points. For example, if using the [page:WebGLRenderer], the points are displayed using GL_POINTS.</div>
  14. <h2>Constructor</h2>
  15. <h3>[name]( [page:Geometry geometry], [page:Material material] )</h3>
  16. <div>
  17. [page:Geometry geometry] — (optional) an instance of [page:Geometry] or [page:BufferGeometry].
  18. Default is a new [page:BufferGeometry].<br />
  19. [page:Material material] — (optional) a [page:Material]. Default is a new [page:PointsMaterial]
  20. with a random color.
  21. </div>
  22. <h2>Properties</h2>
  23. <div>See the base [page:Object3D] class for common properties.</div>
  24. <h3>[property:Geometry geometry]</h3>
  25. <div>
  26. An instance of [page:Geometry] or [page:BufferGeometry] (or derived classes),
  27. defining the object's structure.<br /><br />
  28. Its recommended to always use a [page:BufferGeometry] if possible for best performance.
  29. </div>
  30. <h3>[property:Boolean isPoints]</h3>
  31. <div>
  32. Used to check whether this or derived classes are points. Default is *true*.<br /><br />
  33. You should not change this, as it used internally for optimisation.
  34. </div>
  35. <h3>[property:Material material]</h3>
  36. <div>
  37. An instance of [page:Material], defining the object's appearance.
  38. Default is a [page:PointsMaterial] with a random colour.
  39. </div>
  40. <h2>Methods</h2>
  41. <div>See the base [page:Object3D] class for common methods.</div>
  42. <h3>[method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )</h3>
  43. <div>
  44. Get intersections between a casted ray and this Points.
  45. [page:Raycaster.intersectObject] will call this method.
  46. </div>
  47. <h3>[method:Points clone]()</h3>
  48. <div>
  49. Returns a clone of this Points object and its descendants.
  50. </div>
  51. <h2>Source</h2>
  52. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  53. </body>
  54. </html>