Points.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <p class="desc">
  14. 一个用于显示点的类。
  15. 由[page:WebGLRenderer]渲染的点使用
  16. [link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.POINTS]。
  17. </p>
  18. <h2>构造器</h2>
  19. <h3>[name]( [param:Geometry geometry], [param:Material material] )</h3>
  20. <p>
  21. [page:Geometry geometry] —— (可选)是一个[page:Geometry]或者[page:BufferGeometry]的实例,默认值是一个新的[page:BufferGeometry]。
  22. <br />
  23. [page:Material material] —— (可选) 是一个对象,默认值是一个具有随机颜色的新的[page:PointsMaterial]。
  24. </p>
  25. <h2>属性</h2>
  26. <p>共有属性请参见其基类[page:Object3D]。</p>
  27. <h3>[property:Geometry geometry]</h3>
  28. <p>
  29. 一个[page:Geometry]或[page:BufferGeometry]的实例(或者派生类),定义了物体的结构。<br /><br />
  30. 如有可能,推荐总是使用[page:BufferGeometry]来获得最佳表现。
  31. </p>
  32. <h3>[property:Boolean isPoints]</h3>
  33. <p>用于检查这个类或者其派生类是否为点,默认值为*true*。<br /><br />
  34. 你不应当对这个属性进行改变,因为它在内部使用,以用于优化。
  35. </p>
  36. <h3>[property:Material material]</h3>
  37. <p>
  38. [page:Material]的实例。定义了物体的外观。默认值是一个具有随机颜色的[page:PointsMaterial]。
  39. </p>
  40. <h3>[property:Array morphTargetInfluences]</h3>
  41. <p>
  42. 一个包含有权重(值一般在0-1范围内)的数组,指定应用了多少变形。
  43. 默认情况下是未定义的,但是会被[page:Points.updateMorphTargets updateMorphTargets]重置为一个空数组。
  44. </p>
  45. <h3>[property:Object morphTargetDictionary]</h3>
  46. <p>
  47. 基于morphTarget.name属性的morphTargets字典。
  48. 默认情况下是未定义的,但是会被[page:Points.updateMorphTargets updateMorphTargets]重建。
  49. </p>
  50. <h2>方法</h2>
  51. <p>共有方法请参见其基类[page:Object3D]。</p>
  52. <h3>[method:null raycast]( [param:Raycaster raycaster], [param:Array intersects] )</h3>
  53. <p>
  54. 在一条投射出去的[page:Ray](射线)和点之间产生交互。
  55. [page:Raycaster.intersectObject]将会调用这个方法。
  56. </p>
  57. <h3>[method:Points clone]()</h3>
  58. <p>
  59. 返回这个点及其子集的一个克隆对象。
  60. </p>
  61. <h3>[method:null updateMorphTargets]()</h3>
  62. <p>
  63. 更新morphTargets,使其不对对象产生影响,重置[page:Points.morphTargetInfluences morphTargetInfluences] 和
  64. [page:Points.morphTargetDictionary morphTargetDictionary]属性。
  65. </p>
  66. <h2>源代码</h2>
  67. <p>
  68. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  69. </p>
  70. </body>
  71. </html>