Points.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Points - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → </p>
  13. <h1 translate="no">Points</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A class for displaying points or point clouds.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="Points" translate="no">new <a href="#Points">Points</a><span class="signature">( geometry : <span class="param-type"><a href="BufferGeometry.html">BufferGeometry</a></span>, material : <span class="param-type"><a href="Material.html">Material</a> | Array.&lt;<a href="Material.html">Material</a>></span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new point cloud.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>geometry</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The points geometry.</p>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="name">
  38. <strong>material</strong>
  39. </td>
  40. <td class="description last">
  41. <p>The points material.</p>
  42. </td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. <h2 class="subsection-title">Properties</h2>
  49. <div class="member">
  50. <h3 class="name" id="geometry" translate="no">.<a href="#geometry">geometry</a><span class="type-signature"> : <a href="BufferGeometry.html">BufferGeometry</a></span> </h3>
  51. <div class="description">
  52. <p>The points geometry.</p>
  53. </div>
  54. </div>
  55. <div class="member">
  56. <h3 class="name" id="isPoints" translate="no">.<a href="#isPoints">isPoints</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  57. <div class="description">
  58. <p>This flag can be used for type testing.</p>
  59. <p>Default is <code>true</code>.</p>
  60. </div>
  61. </div>
  62. <div class="member">
  63. <h3 class="name" id="material" translate="no">.<a href="#material">material</a><span class="type-signature"> : <a href="Material.html">Material</a> | Array.&lt;<a href="Material.html">Material</a>></span> </h3>
  64. <div class="description">
  65. <p>The line material.</p>
  66. <p>Default is <code>PointsMaterial</code>.</p>
  67. </div>
  68. </div>
  69. <div class="member">
  70. <h3 class="name" id="morphTargetDictionary" translate="no">.<a href="#morphTargetDictionary">morphTargetDictionary</a><span class="type-signature"> : Object.&lt;String, number> | undefined</span> </h3>
  71. <div class="description">
  72. <p>A dictionary representing the morph targets in the geometry. The key is the
  73. morph targets name, the value its attribute index. This member is <code>undefined</code>
  74. by default and only set when morph targets are detected in the geometry.</p>
  75. <p>Default is <code>undefined</code>.</p>
  76. </div>
  77. </div>
  78. <div class="member">
  79. <h3 class="name" id="morphTargetInfluences" translate="no">.<a href="#morphTargetInfluences">morphTargetInfluences</a><span class="type-signature"> : Array.&lt;number> | undefined</span> </h3>
  80. <div class="description">
  81. <p>An array of weights typically in the range <code>[0,1]</code> that specify how much of the morph
  82. is applied. This member is <code>undefined</code> by default and only set when morph targets are
  83. detected in the geometry.</p>
  84. <p>Default is <code>undefined</code>.</p>
  85. </div>
  86. </div>
  87. <h2 class="subsection-title">Methods</h2>
  88. <h3 class="name name-method" id="raycast" translate="no">.<a href="#raycast">raycast</a><span class="signature">( raycaster : <span class="param-type"><a href="Raycaster.html">Raycaster</a></span>, intersects : <span class="param-type">Array.&lt;Object></span> )</span> </h3>
  89. <div class="method">
  90. <div class="description">
  91. <p>Computes intersection points between a casted ray and this point cloud.</p>
  92. </div>
  93. <table class="params">
  94. <tbody>
  95. <tr>
  96. <td class="name">
  97. <strong>raycaster</strong>
  98. </td>
  99. <td class="description last">
  100. <p>The raycaster.</p>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td class="name">
  105. <strong>intersects</strong>
  106. </td>
  107. <td class="description last">
  108. <p>The target array that holds the intersection points.</p>
  109. </td>
  110. </tr>
  111. </tbody>
  112. </table>
  113. <dl class="details">
  114. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Object3D.html#raycast">Object3D#raycast</a></dt>
  115. </dl>
  116. </div>
  117. <h3 class="name name-method" id="updateMorphTargets" translate="no">.<a href="#updateMorphTargets">updateMorphTargets</a><span class="signature">()</span> </h3>
  118. <div class="method">
  119. <div class="description">
  120. <p>Sets the values of <a href="Points.html#morphTargetDictionary">Points#morphTargetDictionary</a> and <a href="Points.html#morphTargetInfluences">Points#morphTargetInfluences</a>
  121. to make sure existing morph targets can influence this 3D object.</p>
  122. </div>
  123. </div>
  124. <h2 class="subsection-title">Source</h2>
  125. <p>
  126. <a href="https://github.com/mrdoob/three.js/blob/master/src/objects/Points.js" translate="no" target="_blank" rel="noopener">src/objects/Points.js</a>
  127. </p>
  128. </article>
  129. </section>
  130. <script src="../scripts/linenumber.js"></script>
  131. <script src="../scripts/page.js"></script>
  132. </body>
  133. </html>
粤ICP备19079148号