EdgesGeometry.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>EdgesGeometry - 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="BufferGeometry.html">BufferGeometry</a> → </p>
  13. <h1 translate="no">EdgesGeometry</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Can be used as a helper object to view the edges of a geometry.</p>
  17. <p>Note: It is not yet possible to serialize/deserialize instances of this class.</p></div>
  18. <h2>Code Example</h2>
  19. <div translate="no"><pre><code class="language-js">const geometry = new THREE.BoxGeometry();
  20. const edges = new THREE.EdgesGeometry( geometry );
  21. const line = new THREE.LineSegments( edges );
  22. scene.add( line );
  23. </code></pre></div>
  24. </header>
  25. <article>
  26. <div class="container-overview">
  27. <h2>Constructor</h2>
  28. <h3 class="name name-method" id="EdgesGeometry" translate="no">new <a href="#EdgesGeometry">EdgesGeometry</a><span class="signature">( geometry : <span class="param-type"><a href="BufferGeometry.html">BufferGeometry</a></span>, thresholdAngle : <span class="param-type">number</span> )</span> </h3>
  29. <div class="method">
  30. <div class="description">
  31. <p>Constructs a new edges geometry.</p>
  32. </div>
  33. <table class="params">
  34. <tbody>
  35. <tr>
  36. <td class="name">
  37. <strong>geometry</strong>
  38. </td>
  39. <td class="description last">
  40. <p>The geometry.</p>
  41. <p>Default is <code>null</code>.</p>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="name">
  46. <strong>thresholdAngle</strong>
  47. </td>
  48. <td class="description last">
  49. <p>An edge is only rendered if the angle (in degrees)
  50. between the face normals of the adjoining faces exceeds this value.</p>
  51. <p>Default is <code>1</code>.</p>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </div>
  57. </div>
  58. <h2 class="subsection-title">Properties</h2>
  59. <div class="member">
  60. <h3 class="name" id="parameters" translate="no">.<a href="#parameters">parameters</a><span class="type-signature"> : Object</span> </h3>
  61. <div class="description">
  62. <p>Holds the constructor parameters that have been
  63. used to generate the geometry. Any modification
  64. after instantiation does not change the geometry.</p>
  65. </div>
  66. </div>
  67. <h2 class="subsection-title">Source</h2>
  68. <p>
  69. <a href="https://github.com/mrdoob/three.js/blob/master/src/geometries/EdgesGeometry.js" translate="no" target="_blank" rel="noopener">src/geometries/EdgesGeometry.js</a>
  70. </p>
  71. </article>
  72. </section>
  73. <script src="../scripts/linenumber.js"></script>
  74. <script src="../scripts/page.js"></script>
  75. </body>
  76. </html>
粤ICP备19079148号