Points.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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:Points clone]()</h3>
  27. <div>
  28. This creates a clone of the particle system.
  29. </div>
  30. <h3>[method:Array raycast]([page:Raycaster raycaster], [page:Array intersects])</h3>
  31. <div>
  32. Get intersections between a casted ray and this Points. [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 Points Object.
  37. </div>
  38. <div>
  39. Clone a Points 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>