OctahedronGeometry.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:PolyhedronGeometry] &rarr;
  11. <h1>八面缓冲几何体([name])</h1>
  12. <p class="desc">一个用于创建八面体的类。</p>
  13. <iframe id="scene" src="scenes/geometry-browser.html#OctahedronGeometry"></iframe>
  14. <script>
  15. // iOS iframe auto-resize workaround
  16. if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
  17. const scene = document.getElementById( 'scene' );
  18. scene.style.width = getComputedStyle( scene ).width;
  19. scene.style.height = getComputedStyle( scene ).height;
  20. scene.setAttribute( 'scrolling', 'no' );
  21. }
  22. </script>
  23. <h2>构造器</h2>
  24. <h3>[name]([param:Float radius], [param:Integer detail])</h3>
  25. <p>
  26. radius — 八面体的半径,默认值为1。<br />
  27. detail — 默认值为0,将这个值设为一个大于0的数将会为它增加一些顶点,使其不再是一个八面体。
  28. </p>
  29. <h2>属性</h2>
  30. <p>共有属性请参见其基类[page:PolyhedronGeometry]。</p>
  31. <h3>[property:Object parameters]</h3>
  32. <p>
  33. 一个包含着构造函数中每个参数的对象。在对象实例化之后,对该属性的任何修改都不会改变这个几何体。
  34. </p>
  35. <h2>方法(Methods)</h2>
  36. <p>共有方法请参见其基类[page:PolyhedronGeometry]。</p>
  37. <h2>源代码</h2>
  38. <p>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </p>
  41. </body>
  42. </html>