EdgesGeometry.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="zh">
  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:BufferGeometry] &rarr;
  11. <h1>边缘几何体([name])</h1>
  12. <p class="desc">这可以作为一个辅助对象来查看[page:BufferGeometry geometry]的边缘。</p>
  13. <h2>代码示例</h2>
  14. <code>
  15. const geometry = new THREE.BoxGeometry( 100, 100, 100 );
  16. const edges = new THREE.EdgesGeometry( geometry );
  17. const line = new THREE.LineSegments( edges, new THREE.LineBasicMaterial( { color: 0xffffff } ) );
  18. scene.add( line );
  19. </code>
  20. <h2>例子</h2>
  21. <p>
  22. [example:webgl_helpers helpers]
  23. </p>
  24. <h2>构造器</h2>
  25. <h3>[name]( [param:BufferGeometry geometry], [param:Integer thresholdAngle] )</h3>
  26. <p>
  27. geometry — 任何一个几何体对象。<br />
  28. thresholdAngle — 仅当相邻面的法线之间的角度(单位为角度)超过这个值时,才会渲染边缘。默认值为1。
  29. </p>
  30. <h2>属性</h2>
  31. <p>共有属性请参见其基类[page:BufferGeometry]。</p>
  32. <h3>[property:Object parameters]</h3>
  33. <p>
  34. 一个包含着构造函数中每个参数的对象。在对象实例化之后,对该属性的任何修改都不会改变这个几何体。
  35. </p>
  36. <h2>方法(Methods)</h2>
  37. <p>共有方法请参见其基类[page:BufferGeometry]。</p>
  38. <h2>源代码</h2>
  39. <p>
  40. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  41. </p>
  42. </body>
  43. </html>