Points.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 particles in the form of variable size points. For example, if using the [page:WebGLRenderer], the particles are displayed using GL_POINTS.</div>
  14. <h2>Constructor</h2>
  15. <h3>[name]( [page:Geometry geometry], [page:Material material] )</h3>
  16. <div>
  17. geometry — An instance of [page:Geometry].<br />
  18. material — An instance of [page:Material] (optional).
  19. </div>
  20. <h2>Properties</h2>
  21. <h3>[property:Geometry geometry]</h3>
  22. <div>An instance of [page:Geometry], where each vertex designates the position of a particle in the system.</div>
  23. <h3>[property:Material material]</h3>
  24. <div>An instance of [page:Material], defining the object's appearance. Default is a [page:PointsMaterial] with randomised colour.</div>
  25. <h2>Methods</h2>
  26. <h3>[method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )</h3>
  27. <div>
  28. Get intersections between a casted ray and this Points. [page:Raycaster.intersectObject] will call this method.
  29. </div>
  30. <h3>[method:Points clone]()</h3>
  31. <div>
  32. Returns a clone of this Points object and its descendants.
  33. </div>
  34. <h2>Source</h2>
  35. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  36. </body>
  37. </html>