Points.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. geometry — An instance of [page:Geometry].<br />
  18. material — An instance of [page:Material] (optional).
  19. </div>
  20. <h2>Properties</h2>
  21. <div>See the base [page:Object3D] class for common properties.</div>
  22. <h3>[property:Geometry geometry]</h3>
  23. <div>An instance of [page:Geometry], where each vertex designates the position the points.</div>
  24. <h3>[property:Material material]</h3>
  25. <div>An instance of [page:Material], defining the object's appearance. Default is a [page:PointsMaterial] with randomised colour.</div>
  26. <h2>Methods</h2>
  27. <div>See the base [page:Object3D] class for common methods.</div>
  28. <h3>[method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )</h3>
  29. <div>
  30. Get intersections between a casted ray and this Points. [page:Raycaster.intersectObject] will call this method.
  31. </div>
  32. <h3>[method:Points clone]()</h3>
  33. <div>
  34. Returns a clone of this Points object and its descendants.
  35. </div>
  36. <h2>Source</h2>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </body>
  39. </html>