OctahedronGeometry.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE html>
  2. <html lang="en">
  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; [page:PolyhedronGeometry] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">A class for generating an octahedron geometry.</p>
  13. <iframe
  14. id="scene"
  15. src="scenes/geometry-browser.html#OctahedronGeometry"
  16. ></iframe>
  17. <script>
  18. // iOS iframe auto-resize workaround
  19. if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
  20. const scene = document.getElementById( 'scene' );
  21. scene.style.width = getComputedStyle( scene ).width;
  22. scene.style.height = getComputedStyle( scene ).height;
  23. scene.setAttribute( 'scrolling', 'no' );
  24. }
  25. </script>
  26. <h2>Constructor</h2>
  27. <h3>[name]([param:Float radius], [param:Integer detail])</h3>
  28. <p>
  29. radius — Radius of the octahedron. Default is `1`.<br />
  30. detail — Default is `0`. Setting this to a value greater than zero add
  31. vertices making it no longer an octahedron.
  32. </p>
  33. <h2>Properties</h2>
  34. <p>See the base [page:PolyhedronGeometry] class for common properties.</p>
  35. <h3>[property:Object parameters]</h3>
  36. <p>
  37. An object with a property for each of the constructor parameters. Any
  38. modification after instantiation does not change the geometry.
  39. </p>
  40. <h2>Methods</h2>
  41. <p>See the base [page:PolyhedronGeometry] class for common methods.</p>
  42. <h2>Source</h2>
  43. <p>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </p>
  46. </body>
  47. </html>