Points.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:Object3D] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. A class for displaying points.
  14. The points are rendered by the [page:WebGLRenderer] using
  15. [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.POINTS].
  16. </p>
  17. <h2>Constructor</h2>
  18. <h3>[name]( [param:BufferGeometry geometry], [param:Material material] )</h3>
  19. <p>
  20. [page:BufferGeometry geometry] — (optional) an instance of [page:BufferGeometry]. Default is a new [page:BufferGeometry].<br />
  21. [page:Material material] — (optional) a [page:Material]. Default is a new [page:PointsMaterial].
  22. </p>
  23. <h2>Properties</h2>
  24. <p>See the base [page:Object3D] class for common properties.</p>
  25. <h3>[property:BufferGeometry geometry]</h3>
  26. <p>
  27. An instance of [page:BufferGeometry] (or derived classes), defining the object's structure.
  28. </p>
  29. <h3>[property:Material material]</h3>
  30. <p>
  31. An instance of [page:Material], defining the object's appearance.
  32. Default is a [page:PointsMaterial].
  33. </p>
  34. <h3>[property:Array morphTargetInfluences]</h3>
  35. <p>
  36. An array of weights typically from 0-1 that specify how much of the morph is applied.
  37. Undefined by default, but reset to a blank array by [page:Points.updateMorphTargets updateMorphTargets].
  38. </p>
  39. <h3>[property:Object morphTargetDictionary]</h3>
  40. <p>
  41. A dictionary of morphTargets based on the morphTarget.name property.
  42. Undefined by default, but rebuilt [page:Points.updateMorphTargets updateMorphTargets].
  43. </p>
  44. <h2>Methods</h2>
  45. <p>See the base [page:Object3D] class for common methods.</p>
  46. <h3>[method:null raycast]( [param:Raycaster raycaster], [param:Array intersects] )</h3>
  47. <p>
  48. Get intersections between a casted ray and this Points.
  49. [page:Raycaster.intersectObject] will call this method.
  50. </p>
  51. <h3>[method:Points clone]()</h3>
  52. <p>
  53. Returns a clone of this Points object and its descendants.
  54. </p>
  55. <h3>[method:null updateMorphTargets]()</h3>
  56. <p>
  57. Updates the morphTargets to have no influence on the object. Resets the
  58. [page:Points.morphTargetInfluences morphTargetInfluences] and
  59. [page:Points.morphTargetDictionary morphTargetDictionary] properties.
  60. </p>
  61. <h2>Source</h2>
  62. <p>
  63. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  64. </p>
  65. </body>
  66. </html>