Points.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. The points are rendered by the
  14. [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>
  19. [name]( [param:BufferGeometry geometry], [param:Material material] )
  20. </h3>
  21. <p>
  22. [page:BufferGeometry geometry] — (optional) an instance of
  23. [page:BufferGeometry]. Default is a new [page:BufferGeometry].<br />
  24. [page:Material material] — (optional) a [page:Material]. Default is a new
  25. [page:PointsMaterial].
  26. </p>
  27. <h2>Properties</h2>
  28. <p>See the base [page:Object3D] class for common properties.</p>
  29. <h3>[property:BufferGeometry geometry]</h3>
  30. <p>
  31. An instance of [page:BufferGeometry] (or derived classes), defining the
  32. object's structure.
  33. </p>
  34. <h3>[property:Boolean isPoints]</h3>
  35. <p>Read-only flag to check if a given object is of type [name].</p>
  36. <h3>[property:Material material]</h3>
  37. <p>
  38. An instance of [page:Material], defining the object's appearance. Default
  39. is a [page:PointsMaterial].
  40. </p>
  41. <h3>[property:Array morphTargetInfluences]</h3>
  42. <p>
  43. An array of weights typically from 0-1 that specify how much of the morph
  44. is applied. Undefined by default, but reset to a blank array by
  45. [page:Points.updateMorphTargets updateMorphTargets].
  46. </p>
  47. <h3>[property:Object morphTargetDictionary]</h3>
  48. <p>
  49. A dictionary of morphTargets based on the morphTarget.name property.
  50. Undefined by default, but rebuilt [page:Points.updateMorphTargets updateMorphTargets].
  51. </p>
  52. <h2>Methods</h2>
  53. <p>See the base [page:Object3D] class for common methods.</p>
  54. <h3>
  55. [method:undefined raycast]( [param:Raycaster raycaster], [param:Array intersects] )
  56. </h3>
  57. <p>
  58. Get intersections between a casted ray and this Points.
  59. [page:Raycaster.intersectObject] will call this method.
  60. </p>
  61. <h3>[method:undefined updateMorphTargets]()</h3>
  62. <p>
  63. Updates the morphTargets to have no influence on the object. Resets the
  64. [page:Points.morphTargetInfluences morphTargetInfluences] and
  65. [page:Points.morphTargetDictionary morphTargetDictionary] properties.
  66. </p>
  67. <h2>Source</h2>
  68. <p>
  69. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  70. </p>
  71. </body>
  72. </html>