Points.html 2.6 KB

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