Points.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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">BufferGeometry</span>, material : <span class="param-type">Material | Array.&lt;Material></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"><code>geometry</code></td>
  30. <td class="description last"><p>The points geometry.</p></td>
  31. </tr>
  32. <tr>
  33. <td class="name"><code>material</code></td>
  34. <td class="description last"><p>The points material.</p></td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <h2 class="subsection-title">Properties</h2>
  41. <div class="member">
  42. <h3 class="name" id="geometry" translate="no">.<a href="#geometry">geometry</a><span class="type-signature"> : <a href="BufferGeometry.html">BufferGeometry</a></span> </h3>
  43. <div class="description">
  44. <p>The points geometry.</p>
  45. </div>
  46. </div>
  47. <div class="member">
  48. <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>
  49. <div class="description">
  50. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  51. </div>
  52. </div>
  53. <div class="member">
  54. <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>
  55. <div class="description">
  56. <p>The line material.<br/>Default is <code>PointsMaterial</code>.</p>
  57. </div>
  58. </div>
  59. <div class="member">
  60. <h3 class="name" id="morphTargetDictionary" translate="no">.<a href="#morphTargetDictionary">morphTargetDictionary</a><span class="type-signature"> : Object.&lt;String, number> | undefined</span> </h3>
  61. <div class="description">
  62. <p>A dictionary representing the morph targets in the geometry. The key is the
  63. morph targets name, the value its attribute index. This member is <code>undefined</code>
  64. by default and only set when morph targets are detected in the geometry.<br/>Default is <code>undefined</code>.</p>
  65. </div>
  66. </div>
  67. <div class="member">
  68. <h3 class="name" id="morphTargetInfluences" translate="no">.<a href="#morphTargetInfluences">morphTargetInfluences</a><span class="type-signature"> : Array.&lt;number> | undefined</span> </h3>
  69. <div class="description">
  70. <p>An array of weights typically in the range <code>[0,1]</code> that specify how much of the morph
  71. is applied. This member is <code>undefined</code> by default and only set when morph targets are
  72. detected in the geometry.<br/>Default is <code>undefined</code>.</p>
  73. </div>
  74. </div>
  75. <h2 class="subsection-title">Methods</h2>
  76. <h3 class="name name-method" id="raycast" translate="no">.<a href="#raycast">raycast</a><span class="signature">( raycaster : <span class="param-type">Raycaster</span>, intersects : <span class="param-type">Array.&lt;Object></span> )</span> </h3>
  77. <div class="method">
  78. <div class="description">
  79. <p>Computes intersection points between a casted ray and this point cloud.</p>
  80. </div>
  81. <table class="params">
  82. <tbody>
  83. <tr>
  84. <td class="name"><code>raycaster</code></td>
  85. <td class="description last"><p>The raycaster.</p></td>
  86. </tr>
  87. <tr>
  88. <td class="name"><code>intersects</code></td>
  89. <td class="description last"><p>The target array that holds the intersection points.</p></td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. <dl class="details">
  94. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Object3D.html#raycast">Object3D#raycast</a></dt>
  95. </dl>
  96. </div>
  97. <h3 class="name name-method" id="updateMorphTargets" translate="no">.<a href="#updateMorphTargets">updateMorphTargets</a><span class="signature">()</span> </h3>
  98. <div class="method">
  99. <div class="description">
  100. <p>Sets the values of <a href="Points.html#morphTargetDictionary">Points#morphTargetDictionary</a> and <a href="Points.html#morphTargetInfluences">Points#morphTargetInfluences</a>
  101. to make sure existing morph targets can influence this 3D object.</p>
  102. </div>
  103. </div>
  104. <h2 class="subsection-title">Source</h2>
  105. <p>
  106. <a href="https://github.com/mrdoob/three.js/blob/master/src/objects/Points.js" target="_blank" rel="noopener" translate="no">src/objects/Points.js</a>
  107. </p>
  108. </article>
  109. </section>
  110. <script src="../scripts/linenumber.js"></script>
  111. <script src="../scripts/page.js"></script>
  112. </body>
  113. </html>
粤ICP备19079148号